Interface CloudWatchPutMetricActionProps

All Superinterfaces:
CommonActionProps, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CloudWatchPutMetricActionProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:16.088Z") @Stability(Experimental) public interface CloudWatchPutMetricActionProps extends software.amazon.jsii.JsiiSerializable, CommonActionProps
(experimental) Configuration properties of an action for CloudWatch metric.

Example:

 TopicRule topicRule = TopicRule.Builder.create(this, "TopicRule")
         .sql(IotSql.fromStringAsVer20160323("SELECT topic(2) as device_id, namespace, unit, value, timestamp FROM 'device/+/data'"))
         .actions(List.of(
             CloudWatchPutMetricAction.Builder.create()
                     .metricName("${topic(2)}")
                     .metricNamespace("${namespace}")
                     .metricUnit("${unit}")
                     .metricValue("${value}")
                     .metricTimestamp("${timestamp}")
                     .build()))
         .build();