interface CloudWatchAlarmStateChangeProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudWatch.Events.AlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudwatch/events#AlarmEvents_CloudWatchAlarmStateChange_CloudWatchAlarmStateChangeProps |
Java | software.amazon.awscdk.mixins.preview.services.cloudwatch.events.AlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps |
Python | aws_cdk.mixins_preview.aws_cloudwatch.events.AlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps |
TypeScript | @aws-cdk/mixins-preview ยป aws_cloudwatch ยป events ยป AlarmEvents ยป CloudWatchAlarmStateChange ยป CloudWatchAlarmStateChangeProps |
Props type for Alarm aws.cloudwatch@CloudWatchAlarmStateChange event.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { events as cloudwatch_events } from '@aws-cdk/mixins-preview/aws-cloudwatch';
const cloudWatchAlarmStateChangeProps: cloudwatch_events.AlarmEvents.CloudWatchAlarmStateChange.CloudWatchAlarmStateChangeProps = {
alarmName: ['alarmName'],
configuration: {
actionsSuppressor: ['actionsSuppressor'],
actionsSuppressorExtensionPeriod: ['actionsSuppressorExtensionPeriod'],
actionsSuppressorWaitPeriod: ['actionsSuppressorWaitPeriod'],
alarmRule: ['alarmRule'],
description: ['description'],
metrics: [{
id: ['id'],
metricStat: {
metric: {
dimensions: ['dimensions'],
name: ['name'],
namespace: ['namespace'],
},
period: ['period'],
stat: ['stat'],
},
returnData: ['returnData'],
}],
},
eventMetadata: {
region: ['region'],
resources: ['resources'],
version: ['version'],
},
previousState: {
actionsSuppressedBy: ['actionsSuppressedBy'],
actionsSuppressedReason: ['actionsSuppressedReason'],
evaluationState: ['evaluationState'],
reason: ['reason'],
reasonData: ['reasonData'],
timestamp: ['timestamp'],
value: ['value'],
},
state: {
actionsSuppressedBy: ['actionsSuppressedBy'],
actionsSuppressedReason: ['actionsSuppressedReason'],
evaluationState: ['evaluationState'],
reason: ['reason'],
reasonData: ['reasonData'],
timestamp: ['timestamp'],
value: ['value'],
},
};
Properties
| Name | Type | Description |
|---|---|---|
| alarm | string[] | alarmName property. |
| configuration? | Configuration | configuration property. |
| event | AWSEvent | EventBridge event metadata. |
| previous | State | previousState property. |
| state? | State | state property. |
alarmName?
Type:
string[]
(optional, default: Filter with the Alarm reference)
alarmName property.
Specify an array of string values to match this event if the actual value of alarmName is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.
configuration?
Type:
Configuration
(optional, default: Do not filter on this field)
configuration property.
Specify an array of string values to match this event if the actual value of configuration is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.
eventMetadata?
Type:
AWSEvent
(optional, default: -)
EventBridge event metadata.
previousState?
Type:
State
(optional, default: Do not filter on this field)
previousState property.
Specify an array of string values to match this event if the actual value of previousState is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.
state?
Type:
State
(optional, default: Do not filter on this field)
state property.
Specify an array of string values to match this event if the actual value of state is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.

.NET
Go
Java
Python
TypeScript