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.201.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00bb15fd93bc01c97b0f73a4f170cb3234e1cc670a960d808247515b5f7f0abf |
|
MD5 | 1809a216593d5a62d5819d2a9b49987d |
|
BLAKE2b-256 | 6e168fccf32042ba05f83c1e58ec5d439a76079df5e66338bae6019ffd76d0ad |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.201.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d742a6883a9d1a944337207c43cd88cefb037d3f54d159ff4245680204d4fc3 |
|
MD5 | bc263e20be14b940df7316311b3a9a76 |
|
BLAKE2b-256 | 2ed2c7c56b85bdf2417f647e22f263dd47e2674fd2d503ac63af612094d73aae |