AWS CloudFormation
User Guide (Version )

AWS::AutoScaling::ScalingPolicy CustomizedMetricSpecification

CustomizedMetricSpecification is a subproperty of TargetTrackingConfiguration that configures a customized metric for a target tracking policy to use with Amazon EC2 Auto Scaling.

For more information, see CustomizedMetricSpecification in the Amazon EC2 Auto Scaling API Reference.

Syntax

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

JSON

{ "Dimensions" : [ MetricDimension, ... ], "MetricName" : String, "Namespace" : String, "Statistic" : String, "Unit" : String }

YAML

Dimensions: - MetricDimension MetricName: String Namespace: String Statistic: String Unit: String

Properties

Dimensions

The dimensions of the metric.

Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.

Required: No

Type: List of MetricDimension

Update requires: No interruption

MetricName

The name of the metric.

Required: Yes

Type: String

Update requires: No interruption

Namespace

The namespace of the metric.

Required: Yes

Type: String

Update requires: No interruption

Statistic

The statistic of the metric.

Required: Yes

Type: String

Allowed Values: Average | Maximum | Minimum | SampleCount | Sum

Update requires: No interruption

Unit

The unit of the metric.

Required: No

Type: String

Update requires: No interruption

On this page: