See: Description
| Class | Description |
|---|---|
| ApplicationScalingAction |
Use an ApplicationAutoScaling StepScalingAction as an Alarm Action.
|
| AutoScalingAction |
Use an AutoScaling StepScalingAction as an Alarm Action.
|
| Ec2Action |
Use an EC2 action as an Alarm action.
|
| SnsAction |
Use an SNS topic as an alarm action.
|
| SsmAction |
Use an SSM OpsItem action as an Alarm action.
|
| SsmIncidentAction |
Use an SSM Incident Response Plan as an Alarm action.
|
| Enum | Description |
|---|---|
| Ec2InstanceAction |
Types of EC2 actions available.
|
| OpsItemCategory |
Types of OpsItem category available.
|
| OpsItemSeverity |
Types of OpsItem severity available.
|
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
// Alarm must be configured with an EC2 per-instance metric Alarm alarm; // Attach a reboot when alarm triggers alarm.addAlarmAction( new Ec2Action(Ec2InstanceAction.REBOOT));
Alarm alarm; // Create an OpsItem with specific severity and category when alarm triggers alarm.addAlarmAction( new SsmAction(OpsItemSeverity.CRITICAL, OpsItemCategory.PERFORMANCE));
Alarm alarm;
// Create an Incident Manager incident based on a specific response plan
alarm.addAlarmAction(
new SsmIncidentAction("ResponsePlanName"));
See @aws-cdk/aws-cloudwatch for more information.
Copyright © 2022. All rights reserved.