Interface CfnContainerFleet.ScalingPolicyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnContainerFleet.ScalingPolicyProperty.Jsii$Proxy
- Enclosing class:
CfnContainerFleet
Scaling policies are uniquely identified by the combination of name and fleet ID.
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.*;
ScalingPolicyProperty scalingPolicyProperty = ScalingPolicyProperty.builder()
.metricName("metricName")
.name("name")
// the properties below are optional
.comparisonOperator("comparisonOperator")
.evaluationPeriods(123)
.policyType("policyType")
.scalingAdjustment(123)
.scalingAdjustmentType("scalingAdjustmentType")
.targetConfiguration(TargetConfigurationProperty.builder()
.targetValue(123)
.build())
.threshold(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnContainerFleet.ScalingPolicyPropertystatic final classAn implementation forCfnContainerFleet.ScalingPolicyProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringComparison operator to use when measuring a metric against the threshold value.default NumberLength of time (in minutes) the metric must be at or beyond the threshold before a scaling event is triggered.Name of the Amazon GameLift-defined metric that is used to trigger a scaling adjustment.getName()A descriptive label that is associated with a fleet's scaling policy.default StringThe type of scaling policy to create.default NumberAmount of adjustment to make, based on the scaling adjustment type.default StringThe type of adjustment to make to a fleet's instance count.default ObjectSettings for a target-based scaling policy.default NumberMetric value used to trigger a scaling event.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMetricName
Name of the Amazon GameLift-defined metric that is used to trigger a scaling adjustment.- See Also:
-
getName
A descriptive label that is associated with a fleet's scaling policy.Policy names do not need to be unique.
- See Also:
-
getComparisonOperator
Comparison operator to use when measuring a metric against the threshold value.- See Also:
-
getEvaluationPeriods
Length of time (in minutes) the metric must be at or beyond the threshold before a scaling event is triggered.- See Also:
-
getPolicyType
The type of scaling policy to create.For a target-based policy, set the parameter MetricName to 'PercentAvailableGameSessions' and specify a TargetConfiguration. For a rule-based policy set the following parameters: MetricName, ComparisonOperator, Threshold, EvaluationPeriods, ScalingAdjustmentType, and ScalingAdjustment.
- See Also:
-
getScalingAdjustment
Amount of adjustment to make, based on the scaling adjustment type.- See Also:
-
getScalingAdjustmentType
The type of adjustment to make to a fleet's instance count.- See Also:
-
getTargetConfiguration
Settings for a target-based scaling policy.A target-based policy tracks a particular fleet metric specifies a target value for the metric. As player usage changes, the policy triggers Amazon GameLift to adjust capacity so that the metric returns to the target value. The target configuration specifies settings as needed for the target based policy, including the target value.
- See Also:
-
getThreshold
Metric value used to trigger a scaling event.- See Also:
-
builder
-