public static interface CfnGameServerGroup.InstanceDefinitionProperty
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();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnGameServerGroup.InstanceDefinitionProperty.Builder
A builder for
CfnGameServerGroup.InstanceDefinitionProperty |
static class |
CfnGameServerGroup.InstanceDefinitionProperty.Jsii$Proxy
An implementation for
CfnGameServerGroup.InstanceDefinitionProperty |
Modifier and Type | Method and Description |
---|---|
static CfnGameServerGroup.InstanceDefinitionProperty.Builder |
builder() |
java.lang.String |
getInstanceType()
An Amazon EC2 instance type designation.
|
default java.lang.String |
getWeightedCapacity()
Instance weighting that indicates how much this instance type contributes to the total capacity of a game server group.
|
java.lang.String getInstanceType()
default java.lang.String getWeightedCapacity()
Instance weights are used by 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".
static CfnGameServerGroup.InstanceDefinitionProperty.Builder builder()