@Stability(value=Stable)
public static interface CfnGameServerGroup.AutoScalingPolicyProperty
extends software.amazon.jsii.JsiiSerializable
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.services.gamelift.*;
AutoScalingPolicyProperty autoScalingPolicyProperty = AutoScalingPolicyProperty.builder()
.targetTrackingConfiguration(TargetTrackingConfigurationProperty.builder()
.targetValue(123)
.build())
// the properties below are optional
.estimatedInstanceWarmup(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnGameServerGroup.AutoScalingPolicyProperty.Builder
A builder for
CfnGameServerGroup.AutoScalingPolicyProperty |
static class |
CfnGameServerGroup.AutoScalingPolicyProperty.Jsii$Proxy
An implementation for
CfnGameServerGroup.AutoScalingPolicyProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnGameServerGroup.AutoScalingPolicyProperty.Builder |
builder() |
default Number |
getEstimatedInstanceWarmup()
Length of time, in seconds, it takes for a new instance to start new game server processes and register with GameLift FleetIQ.
|
Object |
getTargetTrackingConfiguration()
Settings for a target-based scaling policy applied to Auto Scaling group.
|
@Stability(value=Stable) @NotNull Object getTargetTrackingConfiguration()
These settings are used to create a target-based policy that tracks the GameLift FleetIQ metric PercentUtilizedGameServers and 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.
@Stability(value=Stable) @Nullable default Number getEstimatedInstanceWarmup()
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.
@Stability(value=Stable) static CfnGameServerGroup.AutoScalingPolicyProperty.Builder builder()
Copyright © 2022. All rights reserved.