Class: Aws::GameLift::Types::InstanceDefinition

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-gamelift/types.rb

Overview

**This data type is used with the Amazon GameLift FleetIQ and game server groups.**

An allowed instance type for a game server group. All game server groups must have at least two instance types defined for it. Amazon GameLift FleetIQ periodically evaluates each defined instance type for viability. It then updates the Auto Scaling group with the list of viable instance types.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#instance_typeString

An Amazon EC2 instance type designation.

Returns:

  • (String)


7019
7020
7021
7022
7023
7024
# File 'lib/aws-sdk-gamelift/types.rb', line 7019

class InstanceDefinition < Struct.new(
  :instance_type,
  :weighted_capacity)
  SENSITIVE = []
  include Aws::Structure
end

#weighted_capacityString

Instance weighting that indicates how much this instance type contributes to the total capacity of a game server group. Instance weights are used by Amazon GameLift FleetIQ to calculate the instance type’s cost per unit hour and better identify the most cost-effective options. For detailed information on weighting instance capacity, see [Instance Weighting] in the *Amazon Elastic Compute Cloud Auto Scaling User Guide*. Default value is “1”.

[1]: docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-weighting.html

Returns:

  • (String)


7019
7020
7021
7022
7023
7024
# File 'lib/aws-sdk-gamelift/types.rb', line 7019

class InstanceDefinition < Struct.new(
  :instance_type,
  :weighted_capacity)
  SENSITIVE = []
  include Aws::Structure
end