AWS::CloudWatch::Alarm Metric - AWS CloudFormation

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 AWS 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