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.202.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | db5b0dc203f781d8b64bfbff218977e74914567dea56891a446f316ac9519d95 |
|
MD5 | a157ecee7cb496b9560f868113866f01 |
|
BLAKE2b-256 | e813d607d5520e3f1e85500b55b13b491167521aadd1a6d97e0c8b96b9718e85 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.202.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54c5532d2cedb0e0adf614d62c66434a2777f3b0ba4a9819aa247654379f24b4 |
|
MD5 | 8ce92321a8a58451c802d6b2ca822f9b |
|
BLAKE2b-256 | 9278e3eb5b31596791aebdbb38f98f14f54c64263a6775d7171c7bbde8d7101a |