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.156.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9c7aac8d2864d2af3dd8386d243f27aa30936baf46168c52be2476c13224541 |
|
MD5 | 5c502c89fdbc0861b0d1d7306be8260b |
|
BLAKE2b-256 | bbe6ddb6fb372aff03a79a2367bacd0987b2833f6e511fb04c46c5315ad58f57 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.156.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0aa951d2bc556d328185fd2106e8d5800447ac3f5c87416ace2dfb1671cf6cfb |
|
MD5 | 914231e79d8c7e7f210cfb7e68cfd927 |
|
BLAKE2b-256 | b996c629f4e339ee7f70c0fb2df2acb94fddbecf33fd6c1160f5622be0a60531 |