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.198.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8711d34fc87bc0978af728aab5df56793efc0f5a23e116bd4686cb16ad541eb2 |
|
MD5 | 02a8cdfe3289396782fbc189e3d48225 |
|
BLAKE2b-256 | 04c0454a247d157a6304d88cf00caf581393992cd821a14b6b4008f838df4bd6 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.198.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97eff520c0dff140a9eba4eb6036d4dac1ff9a43d6949cf27999ac1828a2c95e |
|
MD5 | d024341bd886657c36c088df107dae56 |
|
BLAKE2b-256 | 2d5d070db21252f43c28fafef8b6dd705abe106def3b0c49ed7155b77135ded3 |