interface CloudwatchMetricActionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.IoT.Mixins.CfnTopicRulePropsMixin.CloudwatchMetricActionProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsiot/mixins#CfnTopicRulePropsMixin_CloudwatchMetricActionProperty |
Java | software.amazon.awscdk.mixins.preview.services.iot.mixins.CfnTopicRulePropsMixin.CloudwatchMetricActionProperty |
Python | aws_cdk.mixins_preview.aws_iot.mixins.CfnTopicRulePropsMixin.CloudwatchMetricActionProperty |
TypeScript | @aws-cdk/mixins-preview » aws_iot » mixins » 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 { mixins as iot_mixins } from '@aws-cdk/mixins-preview/aws-iot';
const cloudwatchMetricActionProperty: iot_mixins.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