interface CloudwatchMetricActionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.IoT.CfnTopicRulePropsMixin.CloudwatchMetricActionProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsiot#CfnTopicRulePropsMixin_CloudwatchMetricActionProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.iot.CfnTopicRulePropsMixin.CloudwatchMetricActionProperty |
Python | aws_cdk.cfn_property_mixins.aws_iot.CfnTopicRulePropsMixin.CloudwatchMetricActionProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_iot » CfnTopicRulePropsMixin » CloudwatchMetricActionProperty |
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 { aws_iot as iot } from '@aws-cdk/cfn-property-mixins';
const cloudwatchMetricActionProperty: iot.CfnTopicRulePropsMixin.CloudwatchMetricActionProperty = {
metricName: 'metricName',
metricNamespace: 'metricNamespace',
metricTimestamp: 'metricTimestamp',
metricUnit: 'metricUnit',
metricValue: 'metricValue',
roleArn: 'roleArn',
};
Properties
| Name | Type | Description |
|---|---|---|
| metric | string | The CloudWatch metric name. |
| metric | string | The CloudWatch metric namespace name. |
| metric | string | An optional Unix timestamp . |
| metric | string | The metric unit supported by CloudWatch. |
| metric | string | The CloudWatch metric value. |
| role | string | The IAM role that allows access to the CloudWatch metric. |
metricName?
Type:
string
(optional)
The CloudWatch metric name.
metricNamespace?
Type:
string
(optional)
The CloudWatch metric namespace name.
metricTimestamp?
Type:
string
(optional)
An optional Unix timestamp .
metricUnit?
Type:
string
(optional)
The metric unit supported by CloudWatch.
metricValue?
Type:
string
(optional)
The CloudWatch metric value.
roleArn?
Type:
string
(optional)
The IAM role that allows access to the CloudWatch metric.

.NET
Go
Java
Python
TypeScript