Skip to content
v2.275.0

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 ​

MemberDescription
STOPStop the instance.
TERMINATETerminatethe instance.
RECOVERRecover the instance.
REBOOTReboot the instance.