aws-cdk-lib.aws_iot.CfnTopicRule.CloudwatchAlarmActionProperty

interface CloudwatchAlarmActionProperty

LanguageType name
.NETAmazon.CDK.AWS.IoT.CfnTopicRule.CloudwatchAlarmActionProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsiot#CfnTopicRule_CloudwatchAlarmActionProperty
Javasoftware.amazon.awscdk.services.iot.CfnTopicRule.CloudwatchAlarmActionProperty
Pythonaws_cdk.aws_iot.CfnTopicRule.CloudwatchAlarmActionProperty
TypeScript aws-cdk-lib » 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 { aws_iot as iot } from 'aws-cdk-lib';
const cloudwatchAlarmActionProperty: iot.CfnTopicRule.CloudwatchAlarmActionProperty = {
  alarmName: 'alarmName',
  roleArn: 'roleArn',
  stateReason: 'stateReason',
  stateValue: 'stateValue',
};

Properties

NameTypeDescription
alarmNamestringThe CloudWatch alarm name.
roleArnstringThe IAM role that allows access to the CloudWatch alarm.
stateReasonstringThe reason for the alarm change.
stateValuestringThe 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.