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.148.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea3f2b887610472a860c624466ac10761e0bf1decd3508b17db5af0cfc4209a3 |
|
MD5 | 070f080fc42c4a38787e667b047b13eb |
|
BLAKE2b-256 | 9ba43714d588735e0a29115adc90df2d7fa1aaf3a3872da94bfede3b56f0cadc |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.148.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d36ecbe31ed551593220732867d109ca68b4a6e8b071bd1006ace54e637f974 |
|
MD5 | 1ccf7fedd30032d896cb6a0ddcd74e0f |
|
BLAKE2b-256 | da87a59955fb11375f827b37efc97d024313f74d35277893745ac19884c727a9 |