CloudWatch Alarm Actions library¶---
This library contains a set of classes which can be used as CloudWatch Alarm actions.
The currently implemented actions are: EC2 Actions, SNS Actions, Autoscaling Actions and Aplication Autoscaling Actions
EC2 Action Example¶
# Example automatically generated from non-compiling source. May contain errors. import aws_cdk.aws_cloudwatch as cw # Alarm must be configured with an EC2 per-instance metric # alarm is of type Alarm # Attach a reboot when alarm triggers alarm.add_alarm_action( Ec2Action(Ec2InstanceActions.REBOOT))
@aws-cdk/aws-cloudwatch for more information.