# README
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
var alarm alarm
// Attach a reboot when alarm triggers
alarm.AddAlarmAction(
actions.NewEc2Action(actions.Ec2InstanceAction_REBOOT))
SSM OpsCenter Action Example
var alarm alarm
// Create an OpsItem with specific severity and category when alarm triggers
alarm.AddAlarmAction(
actions.NewSsmAction(actions.OpsItemSeverity_CRITICAL, actions.OpsItemCategory_PERFORMANCE))
See @aws-cdk/aws-cloudwatch
for more information.
# Functions
Experimental.
Experimental.
Experimental.
Experimental.
Experimental.
Experimental.
Experimental.
Experimental.
Experimental.
Experimental.
# Constants
Reboot the instance.
Recover the instance.
Stop the instance.
Terminatethe instance.
Set the category to availability.
Set the category to cost.
Set the category to performance.
Set the category to recovery.
Set the category to security.
Set the severity to critical.
Set the severity to high.
Set the severity to low.
Set the severity to medium.
# Interfaces
Use an ApplicationAutoScaling StepScalingAction as an Alarm Action.
Use an AutoScaling StepScalingAction as an Alarm Action.
Use an EC2 action as an Alarm action.
Use an SNS topic as an alarm action.
Use an SSM OpsItem action as an Alarm action.
# Type aliases
Types of EC2 actions available.
Types of OpsItem category available.
Types of OpsItem severity available.