Class CfnGameServerGroup.AutoScalingPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnGameServerGroup.AutoScalingPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGameServerGroup.AutoScalingPolicyProperty>
- Enclosing interface:
CfnGameServerGroup.AutoScalingPolicyProperty
@Stability(Stable)
public static final class CfnGameServerGroup.AutoScalingPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGameServerGroup.AutoScalingPolicyProperty>
A builder for
CfnGameServerGroup.AutoScalingPolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.estimatedInstanceWarmup(Number estimatedInstanceWarmup) targetTrackingConfiguration(IResolvable targetTrackingConfiguration) targetTrackingConfiguration(CfnGameServerGroup.TargetTrackingConfigurationProperty targetTrackingConfiguration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetTrackingConfiguration
@Stability(Stable) public CfnGameServerGroup.AutoScalingPolicyProperty.Builder targetTrackingConfiguration(IResolvable targetTrackingConfiguration) - Parameters:
targetTrackingConfiguration- Settings for a target-based scaling policy applied to Auto Scaling group. This parameter is required. These settings are used to create a target-based policy that tracks the GameLift FleetIQ metricPercentUtilizedGameServersand specifies a target value for the metric. As player usage changes, the policy triggers to adjust the game server group capacity so that the metric returns to the target value.- Returns:
this
-
targetTrackingConfiguration
@Stability(Stable) public CfnGameServerGroup.AutoScalingPolicyProperty.Builder targetTrackingConfiguration(CfnGameServerGroup.TargetTrackingConfigurationProperty targetTrackingConfiguration) - Parameters:
targetTrackingConfiguration- Settings for a target-based scaling policy applied to Auto Scaling group. This parameter is required. These settings are used to create a target-based policy that tracks the GameLift FleetIQ metricPercentUtilizedGameServersand specifies a target value for the metric. As player usage changes, the policy triggers to adjust the game server group capacity so that the metric returns to the target value.- Returns:
this
-
estimatedInstanceWarmup
@Stability(Stable) public CfnGameServerGroup.AutoScalingPolicyProperty.Builder estimatedInstanceWarmup(Number estimatedInstanceWarmup) - Parameters:
estimatedInstanceWarmup- Length of time, in seconds, it takes for a new instance to start new game server processes and register with Amazon GameLift Servers FleetIQ. Specifying a warm-up time can be useful, particularly with game servers that take a long time to start up, because it avoids prematurely starting new instances.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGameServerGroup.AutoScalingPolicyProperty>- Returns:
- a new instance of
CfnGameServerGroup.AutoScalingPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-