Alarm Actions for AWS CloudWatch CDK library
Project description
CloudWatch Alarm Actions library
---AWS CDK v1 has reached End-of-Support on 2023-06-01. This package is no longer being updated, and users should migrate to AWS CDK v2.
For more information on how to migrate, see the Migrating to AWS CDK v2 guide.
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
File details
Details for the file aws-cdk.aws-cloudwatch-actions-1.204.0.tar.gz
.
File metadata
- Download URL: aws-cdk.aws-cloudwatch-actions-1.204.0.tar.gz
- Upload date:
- Size: 31.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93030b786c2eb4ea8d07fdd503585f098965e617d57804fbe7434d11b7634e96 |
|
MD5 | 428d34a7cfdd3427097a91c121845b16 |
|
BLAKE2b-256 | f2a7c45c2f498eb4f2ae2d71fca7eb9841de5bc1c83c7467bff5eed896c51f8c |
File details
Details for the file aws_cdk.aws_cloudwatch_actions-1.204.0-py3-none-any.whl
.
File metadata
- Download URL: aws_cdk.aws_cloudwatch_actions-1.204.0-py3-none-any.whl
- Upload date:
- Size: 30.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e79fd500a83ec7415cfcd5d50093a76b591bb3a1cba16d56836783266c6b6388 |
|
MD5 | a6b2094dc0f23535bdedf9061e8df56c |
|
BLAKE2b-256 | 1a7c32d5bcd9890801307a564b0641ceb9c7f020667b06820ec82ce352240966 |