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.163.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 171e3497d32da775d33a86d524611f928d69caa7099f2caa1c4c69608b369ce9 |
|
MD5 | 0f36415ac9853b627cb702456acbace3 |
|
BLAKE2b-256 | db7aec78190e55143581db8c3c85a0914fdb567fe3e11504c76ca1130047cd2e |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.163.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 964c668ab09f962ff222469db1536e3eee20a0d7aafc6fa1c415066e3a003447 |
|
MD5 | 2d6126badd845093502e418f49583cc4 |
|
BLAKE2b-256 | 9d4a410b33f36ef71770d52b96f89cdaa13f936dee9f6d5915b37737543787f9 |