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.200.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e7f1d95d668f4ff116c31c8a7c8e067b9b954bd2b225638ecbb536d6d65bdcc |
|
MD5 | 8b5188286c7c94ce99d0d2271b3873c7 |
|
BLAKE2b-256 | cbd91645d899b5ac7a842ff9899e3c08a19c84cd39b4e1cc05985bf3cc54b717 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.200.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1eb4b5ed43e65deb406c32f0f92fd724ce4d06c55a40cf40e670cfe503c6f56 |
|
MD5 | c2d529cb9e58822e3344bd04bdfc5b11 |
|
BLAKE2b-256 | 21b79a78e31e2e58fa431d3d2183364eb0f991d2c43ff2590bc2b3471206ab2b |