interface CloudwatchAlarmActionProperty
| Language | Type name | 
|---|---|
  .NET | Amazon.CDK.AWS.IoT.CfnTopicRule.CloudwatchAlarmActionProperty | 
  Java | software.amazon.awscdk.services.iot.CfnTopicRule.CloudwatchAlarmActionProperty | 
  Python | aws_cdk.aws_iot.CfnTopicRule.CloudwatchAlarmActionProperty | 
  TypeScript  | @aws-cdk/aws-iot » CfnTopicRule » CloudwatchAlarmActionProperty | 
Describes an action that updates a CloudWatch alarm.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as iot from '@aws-cdk/aws-iot';
const cloudwatchAlarmActionProperty: iot.CfnTopicRule.CloudwatchAlarmActionProperty = {
  alarmName: 'alarmName',
  roleArn: 'roleArn',
  stateReason: 'stateReason',
  stateValue: 'stateValue',
};
Properties
| Name | Type | Description | 
|---|---|---|
| alarm | string | The CloudWatch alarm name. | 
| role | string | The IAM role that allows access to the CloudWatch alarm. | 
| state | string | The reason for the alarm change. | 
| state | string | The value of the alarm state. | 
alarmName
Type:
string
The CloudWatch alarm name.
roleArn
Type:
string
The IAM role that allows access to the CloudWatch alarm.
stateReason
Type:
string
The reason for the alarm change.
stateValue
Type:
string
The value of the alarm state.
Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.

 .NET
 Java
 Python
 TypeScript