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.165.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23c909783fc8187a11ef2e28ad021be9c30d862ee9d056ebb3bf433334da5436 |
|
MD5 | 2ca4eefbc31a695df6f2c1847dca2e59 |
|
BLAKE2b-256 | 1e37a11d093324d1c4511f7505a85dedcf296ed83dc8f48b4fe1cf8a0d0f16de |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.165.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 785ad5829c1905bfc967a7f4466a3486f4c4d6a786f3e6ff5a340fc86278d6a8 |
|
MD5 | 10f5b4f48d1d6a07527cf1b117f3db79 |
|
BLAKE2b-256 | 783929615a3969b3020c877158695dbf849ebef25b8e07b94e0c40d86921e851 |