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.175.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 213f704992a3b09b0c29135cefd28051e6061c1d02bd9f41e24fee8d3bfca1d3 |
|
MD5 | e16dff2caf304386fe81a1c2994af888 |
|
BLAKE2b-256 | 3efe28a5082e1d724cb870ed6654d49a808b253248390b02ed29dcd03d2775e8 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.175.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e9a23e88550a47d5bc11898adb9a8c0944d46ac26eaac6e8085301e45b5d7cf |
|
MD5 | 39f86075eb41a38fe6f3386d06cbffce |
|
BLAKE2b-256 | a85cb9c25e5e6c33438ac114ab49dd136b5a37f68fc9c0f2c2e243ce8226c192 |