Interface CfnTopicRule.CloudwatchMetricActionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTopicRule.CloudwatchMetricActionProperty.Jsii$Proxy
- Enclosing class:
CfnTopicRule
@Stability(Stable)
public static interface CfnTopicRule.CloudwatchMetricActionProperty
extends software.amazon.jsii.JsiiSerializable
Describes an action that captures a CloudWatch metric.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iot.*;
CloudwatchMetricActionProperty cloudwatchMetricActionProperty = CloudwatchMetricActionProperty.builder()
.metricName("metricName")
.metricNamespace("metricNamespace")
.metricUnit("metricUnit")
.metricValue("metricValue")
.roleArn("roleArn")
// the properties below are optional
.metricTimestamp("metricTimestamp")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnTopicRule.CloudwatchMetricActionPropertystatic final classAn implementation forCfnTopicRule.CloudwatchMetricActionProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The CloudWatch metric name.The CloudWatch metric namespace name.default StringAn optional Unix timestamp .The metric unit supported by CloudWatch.The CloudWatch metric value.The IAM role that allows access to the CloudWatch metric.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMetricName
The CloudWatch metric name.- See Also:
-
getMetricNamespace
The CloudWatch metric namespace name.- See Also:
-
getMetricUnit
The metric unit supported by CloudWatch.- See Also:
-
getMetricValue
The CloudWatch metric value.- See Also:
-
getRoleArn
The IAM role that allows access to the CloudWatch metric.- See Also:
-
getMetricTimestamp
An optional Unix timestamp .- See Also:
-
builder
-