aws-cdk-lib.aws_cloudwatch.IAlarmAction

interface IAlarmAction

LanguageType name
.NETAmazon.CDK.AWS.CloudWatch.IAlarmAction
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudwatch#IAlarmAction
Javasoftware.amazon.awscdk.services.cloudwatch.IAlarmAction
Pythonaws_cdk.aws_cloudwatch.IAlarmAction
TypeScript (source)aws-cdk-lib » aws_cloudwatch » IAlarmAction

Implemented by ApplicationScalingAction, AutoScalingAction, Ec2Action, SnsAction, SsmAction, SsmIncidentAction

Interface for objects that can be the targets of CloudWatch alarm actions.

Methods

NameDescription
bind(scope, alarm)Return the properties required to send alarm actions to this CloudWatch alarm.

bind(scope, alarm)

public bind(scope: Construct, alarm: IAlarm): AlarmActionConfig

Parameters

  • scope Construct — root Construct that allows creating new Constructs.
  • alarm IAlarm — CloudWatch alarm that the action will target.

Returns

  • AlarmActionConfig

Return the properties required to send alarm actions to this CloudWatch alarm.