@Stability(value=Stable) public static final class CfnGameServerGroupProps.Builder extends Object implements software.amazon.jsii.Builder<CfnGameServerGroupProps>
CfnGameServerGroupProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnGameServerGroupProps.Builder gameServerGroupName(String gameServerGroupName)
CfnGameServerGroupProps.getGameServerGroupName()gameServerGroupName - A developer-defined identifier for the game server group. This parameter is required.
The name is unique for each Region in each AWS account.this@Stability(value=Stable) public CfnGameServerGroupProps.Builder instanceDefinitions(IResolvable instanceDefinitions)
CfnGameServerGroupProps.getInstanceDefinitions()instanceDefinitions - The set of Amazon EC2 instance types that GameLift FleetIQ can use when balancing and automatically scaling instances in the corresponding Auto Scaling group. This parameter is required.this@Stability(value=Stable) public CfnGameServerGroupProps.Builder instanceDefinitions(List<? extends Object> instanceDefinitions)
CfnGameServerGroupProps.getInstanceDefinitions()instanceDefinitions - The set of Amazon EC2 instance types that GameLift FleetIQ can use when balancing and automatically scaling instances in the corresponding Auto Scaling group. This parameter is required.this@Stability(value=Stable) public CfnGameServerGroupProps.Builder launchTemplate(CfnGameServerGroup.LaunchTemplateProperty launchTemplate)
CfnGameServerGroupProps.getLaunchTemplate()launchTemplate - `AWS::GameLift::GameServerGroup.LaunchTemplate`. This parameter is required.this@Stability(value=Stable) public CfnGameServerGroupProps.Builder launchTemplate(IResolvable launchTemplate)
CfnGameServerGroupProps.getLaunchTemplate()launchTemplate - `AWS::GameLift::GameServerGroup.LaunchTemplate`. This parameter is required.this@Stability(value=Stable) public CfnGameServerGroupProps.Builder roleArn(String roleArn)
CfnGameServerGroupProps.getRoleArn()roleArn - The Amazon Resource Name ( [ARN](https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html) ) for an IAM role that allows Amazon Web Services to access your Amazon EC2 Auto Scaling groups. This parameter is required.this@Stability(value=Stable) public CfnGameServerGroupProps.Builder autoScalingPolicy(CfnGameServerGroup.AutoScalingPolicyProperty autoScalingPolicy)
CfnGameServerGroupProps.getAutoScalingPolicy()autoScalingPolicy - `AWS::GameLift::GameServerGroup.AutoScalingPolicy`.this@Stability(value=Stable) public CfnGameServerGroupProps.Builder autoScalingPolicy(IResolvable autoScalingPolicy)
CfnGameServerGroupProps.getAutoScalingPolicy()autoScalingPolicy - `AWS::GameLift::GameServerGroup.AutoScalingPolicy`.this@Stability(value=Stable) public CfnGameServerGroupProps.Builder balancingStrategy(String balancingStrategy)
CfnGameServerGroupProps.getBalancingStrategy()balancingStrategy - Indicates how GameLift FleetIQ balances the use of Spot Instances and On-Demand Instances in the game server group.
Method options include the following:
SPOT_ONLY - Only Spot Instances are used in the game server group. If Spot Instances are unavailable or not viable for game hosting, the game server group provides no hosting capacity until Spot Instances can again be used. Until then, no new instances are started, and the existing nonviable Spot Instances are terminated (after current gameplay ends) and are not replaced.SPOT_PREFERRED - (default value) Spot Instances are used whenever available in the game server group. If Spot Instances are unavailable, the game server group continues to provide hosting capacity by falling back to On-Demand Instances. Existing nonviable Spot Instances are terminated (after current gameplay ends) and are replaced with new On-Demand Instances.ON_DEMAND_ONLY - Only On-Demand Instances are used in the game server group. No Spot Instances are used, even when available, while this balancing strategy is in force.this@Stability(value=Stable) public CfnGameServerGroupProps.Builder deleteOption(String deleteOption)
CfnGameServerGroupProps.getDeleteOption()deleteOption - `AWS::GameLift::GameServerGroup.DeleteOption`.this@Stability(value=Stable) public CfnGameServerGroupProps.Builder gameServerProtectionPolicy(String gameServerProtectionPolicy)
CfnGameServerGroupProps.getGameServerProtectionPolicy()gameServerProtectionPolicy - A flag that indicates whether instances in the game server group are protected from early termination.
Unprotected instances that have active game servers running might be terminated during a scale-down event, causing players to be dropped from the game. Protected instances cannot be terminated while there are active game servers running except in the event of a forced game server group deletion (see ). An exception to this is with Spot Instances, which can be terminated by AWS regardless of protection status.this@Stability(value=Stable) public CfnGameServerGroupProps.Builder maxSize(Number maxSize)
CfnGameServerGroupProps.getMaxSize()maxSize - `AWS::GameLift::GameServerGroup.MaxSize`.this@Stability(value=Stable) public CfnGameServerGroupProps.Builder minSize(Number minSize)
CfnGameServerGroupProps.getMinSize()minSize - `AWS::GameLift::GameServerGroup.MinSize`.this@Stability(value=Stable) public CfnGameServerGroupProps.Builder tags(List<? extends CfnTag> tags)
CfnGameServerGroupProps.getTags()tags - `AWS::GameLift::GameServerGroup.Tags`.this@Stability(value=Stable) public CfnGameServerGroupProps.Builder vpcSubnets(List<String> vpcSubnets)
CfnGameServerGroupProps.getVpcSubnets()vpcSubnets - `AWS::GameLift::GameServerGroup.VpcSubnets`.this@Stability(value=Stable) public CfnGameServerGroupProps build()
build in interface software.amazon.jsii.Builder<CfnGameServerGroupProps>CfnGameServerGroupPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.