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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c80da8a301761f69441bab15b8ea8977b34cff09d7730c8b51c23779e05535c |
|
MD5 | 40ccd50711a782c7a9e1ae047fca6d6b |
|
BLAKE2b-256 | f1b785ecc7d73a743e9317dd6f4036a73830ad1af3707915152380661b6626c9 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.163.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9139ae6a95bcfa8e25694ee9be0c140ab172ed7deec4b2d4570bcc9738218f1 |
|
MD5 | 3dacea01525fcebcefa9ee7bb71dc29b |
|
BLAKE2b-256 | 22b7e03c5226486a829cbeed5c6627757677bc19565efe0bce37042fc760be4a |