AWS CloudFormation
User Guide (API Version 2010-05-15)

Application Auto Scaling ScalingPolicy PredefinedMetricSpecification

Use the PredefinedMetricSpecification property to configure a predefined metric for a target tracking policy to use with Application Auto Scaling. PredefinedMetricSpecification is a subproperty of the Application Auto Scaling ScalingPolicy TargetTrackingScalingPolicyConfiguration property.

Syntax

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

JSON

{ "PredefinedMetricType" : String, "ResourceLabel" : String }

YAML

PredefinedMetricType: String ResourceLabel: String

Properties

For more information about each property, including constraints and valid values, see PredefinedMetricSpecification in the Application Auto Scaling API Reference.

PredefinedMetricType

The metric type.

Required: Yes

Type: String

Update requires: No interruption

ResourceLabel

Identifies the resource associated with the metric type. You can't specify a resource label unless the metric type is ALBRequestCountPerTarget and there is a target group attached to the Spot fleet request or ECS service.

The format is app/<load-balancer-name>/<load-balancer-id>/targetgroup/<target-group-name>/<target-group-id>, where:

  • app/<load-balancer-name>/<load-balancer-id> is the final portion of the load balancer ARN

  • targetgroup/<target-group-name>/<target-group-id> is the final portion of the target group ARN.

Required: No

Type: String

Length constraints: Minimum length of 1. Maximum length of 1023.

Update requires: No interruption

On this page: