@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.270Z") @Stability(value=Stable) public enum Ec2InstanceAction extends Enum<Ec2InstanceAction>
Example:
// Alarm must be configured with an EC2 per-instance metric Alarm alarm; // Attach a reboot when alarm triggers alarm.addAlarmAction( new Ec2Action(Ec2InstanceAction.REBOOT));
| Enum Constant and Description |
|---|
REBOOT
Reboot the instance.
|
RECOVER
Recover the instance.
|
STOP
Stop the instance.
|
TERMINATE
Terminatethe instance.
|
| Modifier and Type | Method and Description |
|---|---|
static Ec2InstanceAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Ec2InstanceAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final Ec2InstanceAction STOP
@Stability(value=Stable) public static final Ec2InstanceAction TERMINATE
@Stability(value=Stable) public static final Ec2InstanceAction RECOVER
@Stability(value=Stable) public static final Ec2InstanceAction REBOOT
public static Ec2InstanceAction[] values()
for (Ec2InstanceAction c : Ec2InstanceAction.values()) System.out.println(c);
public static Ec2InstanceAction valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.