AWS::CloudWatch::Alarm Metric - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::CloudWatch::Alarm Metric

The Metric property type represents a specific metric. Metric is a property of the MetricStat property type.

Syntax

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

JSON

{ "Dimensions" : [ Dimension, ... ], "MetricName" : String, "Namespace" : String }

YAML

Dimensions: - Dimension MetricName: String Namespace: String

Properties

Dimensions

The metric dimensions that you want to be used for the metric that the alarm will watch.

Required: No

Type: Array of Dimension

Maximum: 30

Update requires: No interruption

MetricName

The name of the metric that you want the alarm to watch. This is a required field.

Required: No

Type: String

Minimum: 1

Maximum: 255

Update requires: No interruption

Namespace

The namespace of the metric that the alarm will watch.

Required: No

Type: String

Pattern: [^:].*

Minimum: 1

Maximum: 255

Update requires: No interruption