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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 426bb9c18fd096245780bb09a16a9db5c5dcf88f92d5442faf2f62698b3ebb32 |
|
MD5 | bfd2261fe5b25520898496f49704c93c |
|
BLAKE2b-256 | bab80856f9bfb59f5ca7d37634bf0c593c3b9310d54c94dca6eed5a8d2fcba74 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.153.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da90477f016f1ba09eeed86498e2679471def40c7677596efc4836cf00bad069 |
|
MD5 | 6dc072daef114aaf9d6bf770aea11ecf |
|
BLAKE2b-256 | 5e2555209f1aa1b4d2711d4c751bcc91a8143adc4e1dab88ae000f16bb3ab298 |