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.188.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d34106ab224a2512e584169f4c05d4a8260b08381dbfa6ce8aee522918aa9586 |
|
MD5 | 5b74a15ef04bda596f22c8c32a650c40 |
|
BLAKE2b-256 | 42ca45e396e31458fe7fa7d48f719058c534ae45ff9fbb197315c527044512e5 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.188.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f4947465c5742da68423520db1d4d62591ce5c67697f96a30dd41e06ed4d7f2 |
|
MD5 | 7dd63716c24bc44ed2fbd30c48f0d946 |
|
BLAKE2b-256 | feabd4283fbccebe5994d590fa98458a4dab606d217807b3c2d9d344a1f65987 |