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.153.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ab1d3a0c99e45db02ddd95f28fe35fc117aa3fec1a41dc1926aadcdb92d088f |
|
MD5 | c78a82fb2ec06b159532b27b02bcd049 |
|
BLAKE2b-256 | 435c49a3b6569c93c811ebe3dc63bd00675163066712457a0798e1279778b697 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.153.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 371b5cf4c8b9faf8670df9f3d165d20c7846ddcd2b8b65efc8ab08bd25fc8e58 |
|
MD5 | 9f1303ed0ed46993a35e3517cd435c41 |
|
BLAKE2b-256 | 0f274a1cd5097c5feb649fba9ee928edd96a2c6423c2325e8948e6fb1dcee18f |