Alarm Actions for AWS CloudWatch CDK library
Project description
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, SSM OpsCenter Actions, Autoscaling Actions and Application Autoscaling Actions
EC2 Action Example
# Alarm must be configured with an EC2 per-instance metric
# alarm: cloudwatch.Alarm
# Attach a reboot when alarm triggers
alarm.add_alarm_action(
actions.Ec2Action(actions.Ec2InstanceAction.REBOOT))
SSM OpsCenter Action Example
# alarm: cloudwatch.Alarm
# Create an OpsItem with specific severity and category when alarm triggers
alarm.add_alarm_action(
actions.SsmAction(actions.OpsItemSeverity.CRITICAL, actions.OpsItemCategory.PERFORMANCE))
See @aws-cdk/aws-cloudwatch
for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for aws-cdk.aws-cloudwatch-actions-1.194.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e9dc9d062ada67e9e431e51398e655eee4c14296bf94962af9535f012581b15 |
|
MD5 | 8842d93768f50f89eeebbffd87c76a1d |
|
BLAKE2b-256 | 3b6fc451a5dcef0b6e11d065c62f53c15daa257a236622126cb59aadf94f1999 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.194.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2e9f95f565d028e445c59651da1383e67e7b21c2d8c61935b3b727244dcf3e6 |
|
MD5 | b89dcb1f13e29f5a1c2df5b897b9b3d0 |
|
BLAKE2b-256 | 5e7af8522dbd0213e1fa013730718c1a0d16b5e127fe699fc892c8cb6d869cb7 |