ContainerFleetScalingPolicyArgs

data class ContainerFleetScalingPolicyArgs(val comparisonOperator: Output<ContainerFleetScalingPolicyComparisonOperator>? = null, val evaluationPeriods: Output<Int>? = null, val metricName: Output<ContainerFleetScalingPolicyMetricName>, val name: Output<String>, val policyType: Output<ContainerFleetScalingPolicyPolicyType>? = null, val scalingAdjustment: Output<Int>? = null, val scalingAdjustmentType: Output<ContainerFleetScalingPolicyScalingAdjustmentType>? = null, val targetConfiguration: Output<ContainerFleetTargetConfigurationArgs>? = null, val threshold: Output<Double>? = null) : ConvertibleToJava<ContainerFleetScalingPolicyArgs>

Rule that controls how a fleet is scaled. Scaling policies are uniquely identified by the combination of name and fleet ID.

Constructors

Link copied to clipboard
constructor(comparisonOperator: Output<ContainerFleetScalingPolicyComparisonOperator>? = null, evaluationPeriods: Output<Int>? = null, metricName: Output<ContainerFleetScalingPolicyMetricName>, name: Output<String>, policyType: Output<ContainerFleetScalingPolicyPolicyType>? = null, scalingAdjustment: Output<Int>? = null, scalingAdjustmentType: Output<ContainerFleetScalingPolicyScalingAdjustmentType>? = null, targetConfiguration: Output<ContainerFleetTargetConfigurationArgs>? = null, threshold: Output<Double>? = null)

Properties

Link copied to clipboard

Comparison operator to use when measuring a metric against the threshold value.

Link copied to clipboard
val evaluationPeriods: Output<Int>? = null

Length of time (in minutes) the metric must be at or beyond the threshold before a scaling event is triggered.

Link copied to clipboard

Name of the Amazon GameLift-defined metric that is used to trigger a scaling adjustment.

Link copied to clipboard
val name: Output<String>

A descriptive label that is associated with a fleet's scaling policy. Policy names do not need to be unique.

Link copied to clipboard

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.

Link copied to clipboard
val scalingAdjustment: Output<Int>? = null

Amount of adjustment to make, based on the scaling adjustment type.

Link copied to clipboard

The type of adjustment to make to a fleet's instance count.

Link copied to clipboard

An object that contains settings for a target-based scaling policy.

Link copied to clipboard
val threshold: Output<Double>? = null

Metric value used to trigger a scaling event.

Functions

Link copied to clipboard
open override fun toJava(): ContainerFleetScalingPolicyArgs