Interface CfnGameServerGroupPropsMixin.AutoScalingPolicyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnGameServerGroupPropsMixin.AutoScalingPolicyProperty.Jsii$Proxy
- Enclosing class:
CfnGameServerGroupPropsMixin
Configuration settings for intelligent automatic scaling that uses target tracking. After the Auto Scaling group is created, all updates to Auto Scaling policies, including changing this policy and adding or removing other policies, is done directly on the Auto Scaling group.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.gamelift.*;
AutoScalingPolicyProperty autoScalingPolicyProperty = AutoScalingPolicyProperty.builder()
.estimatedInstanceWarmup(123)
.targetTrackingConfiguration(TargetTrackingConfigurationProperty.builder()
.targetValue(123)
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnGameServerGroupPropsMixin.AutoScalingPolicyPropertystatic final classAn implementation forCfnGameServerGroupPropsMixin.AutoScalingPolicyProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEstimatedInstanceWarmup
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.
- See Also:
-
getTargetTrackingConfiguration
Settings for a target-based scaling policy applied to Auto Scaling group.These settings are used to create a target-based policy that tracks the GameLift FleetIQ metric
PercentUtilizedGameServersand 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 union: either
IResolvableorCfnGameServerGroupPropsMixin.TargetTrackingConfigurationProperty- See Also:
-
builder
-