Ec2InstanceAction Enum
Types of EC2 actions available.
Example
ts
// Alarm must be configured with an EC2 per-instance metric
declare const alarm: cloudwatch.Alarm;
// Attach a reboot when alarm triggers
alarm.addAlarmAction(
new actions.Ec2Action(actions.Ec2InstanceAction.REBOOT),
);
Members
| Member | Description |
|---|---|
STOP | Stop the instance. |
TERMINATE | Terminatethe instance. |
RECOVER | Recover the instance. |
REBOOT | Reboot the instance. |