This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::IoT::TopicRule CloudwatchMetricAction
Describes an action that captures a CloudWatch metric.
Syntax
To declare this entity in your CloudFormation template, use the following syntax:
JSON
{ "MetricName" :String, "MetricNamespace" :String, "MetricTimestamp" :String, "MetricUnit" :String, "MetricValue" :String, "RoleArn" :String}
YAML
MetricName:StringMetricNamespace:StringMetricTimestamp:StringMetricUnit:StringMetricValue:StringRoleArn:String
Properties
MetricName-
The CloudWatch metric name.
Required: Yes
Type: String
Update requires: No interruption
MetricNamespace-
The CloudWatch metric namespace name.
Required: Yes
Type: String
Update requires: No interruption
MetricTimestamp-
An optional Unix timestamp.
Required: No
Type: String
Update requires: No interruption
MetricUnit-
The metric unit supported by CloudWatch.
Required: Yes
Type: String
Update requires: No interruption
MetricValue-
The CloudWatch metric value.
Required: Yes
Type: String
Update requires: No interruption
RoleArn-
The IAM role that allows access to the CloudWatch metric.
Required: Yes
Type: String
Update requires: No interruption