Interface CfnGameServerGroup.InstanceDefinitionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnGameServerGroup.InstanceDefinitionProperty.Jsii$Proxy
- Enclosing class:
CfnGameServerGroup
@Stability(Stable)
public static interface CfnGameServerGroup.InstanceDefinitionProperty
extends software.amazon.jsii.JsiiSerializable
This data type is used with the Amazon GameLift FleetIQ and game server groups..
An allowed instance type for a GameServerGroup
. All game server groups must have at least two instance types defined for it. GameLift FleetIQ periodically evaluates each defined instance type for viability. It then updates the Auto Scaling group with the list of viable instance types.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.gamelift.*; InstanceDefinitionProperty instanceDefinitionProperty = InstanceDefinitionProperty.builder() .instanceType("instanceType") // the properties below are optional .weightedCapacity("weightedCapacity") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnGameServerGroup.InstanceDefinitionProperty
static final class
An implementation forCfnGameServerGroup.InstanceDefinitionProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInstanceType
An Amazon EC2 instance type designation.- See Also:
-
getWeightedCapacity
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".
- See Also:
-
builder
-