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.187.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49b5b4341df9f4cfc4250ab830437f791694a815cc15e176415be697b9014042 |
|
MD5 | 16a720eee31c4f2a6050ad9853da409f |
|
BLAKE2b-256 | da61b5c3c0de2d3ea2e1d8f5ca0846c7111160feb596626c635e5a216263cb10 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.187.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e397e5e53bb7c6bdadc3a04c8c93f8fb041026c6f84ee97d2c62e8af69b3d6c6 |
|
MD5 | 84269f5b69408635c5cf288fef2018ca |
|
BLAKE2b-256 | 67c4dcd40f3b7c46e8da4419b44542099d57c7f0dbf972480cd8c3f45816fd75 |