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.195.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3546294fdba8b3626c449ba9a8d0e2d3afd8b539fc6605cda728904c19736d8 |
|
MD5 | ef389c5994fa50dc8ac8607c10eabce1 |
|
BLAKE2b-256 | 8a8f4b593e136ef4d4c4dea7c6d5c6de86ff2d71a790da46b201eada4ee77828 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.195.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93bdff5ae5a89a045d996a3c09a0feeda54605c0e8272957ade74d566db5f882 |
|
MD5 | 00779f23fb93af82817df3c7a72ea4cb |
|
BLAKE2b-256 | c452f082e45ccaf9906dd26ef19774310acb548482837df5ff1d3b92b83f4367 |