AWS::AutoScaling::ScalingPolicy PredictiveScalingMetricSpecification - AWS CloudFormation

AWS::AutoScaling::ScalingPolicy PredictiveScalingMetricSpecification

A structure that specifies a metric specification for the MetricSpecifications property of the AWS::AutoScaling::ScalingPolicy PredictiveScalingConfiguration property type.

For more information, see Predictive scaling in the Amazon EC2 Auto Scaling User Guide.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

Properties

PredefinedLoadMetricSpecification

The load metric specification.

If you specify PredefinedMetricPairSpecification, don't specify this property.

Required: No

Type: PredictiveScalingPredefinedLoadMetric

Update requires: No interruption

PredefinedMetricPairSpecification

The metric pair specification from which Amazon EC2 Auto Scaling determines the appropriate scaling metric and load metric to use.

Note

With predictive scaling, you must specify either a metric pair, or a load metric and a scaling metric individually. Specifying a metric pair instead of individual metrics provides a simpler way to configure metrics for a scaling policy. You choose the metric pair, and the policy automatically knows the correct sum and average statistics to use for the load metric and the scaling metric.

Required: No

Type: PredictiveScalingPredefinedMetricPair

Update requires: No interruption

PredefinedScalingMetricSpecification

The scaling metric specification.

If you specify PredefinedMetricPairSpecification, don't specify this property.

Required: No

Type: PredictiveScalingPredefinedScalingMetric

Update requires: No interruption

TargetValue

Specifies the target utilization.

Note

Some metrics are based on a count instead of a percentage, such as the request count for an Application Load Balancer or the number of messages in an SQS queue. If the scaling policy specifies one of these metrics, specify the target utilization as the optimal average request or message count per instance during any one-minute interval.

Required: Yes

Type: Double

Update requires: No interruption