software.amazon.awscdk.services.cloudwatch.actions.Ec2InstanceAction Maven / Gradle / Ivy
package software.amazon.awscdk.services.cloudwatch.actions;
/**
* Types of EC2 actions available.
*
* 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));
*
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.84.0 (build 5404dcf)", date = "2023-06-19T16:30:46.255Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.cloudwatch.actions.$Module.class, fqn = "@aws-cdk/aws-cloudwatch-actions.Ec2InstanceAction")
public enum Ec2InstanceAction {
/**
* Stop the instance.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
STOP,
/**
* Terminatethe instance.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
TERMINATE,
/**
* Recover the instance.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
RECOVER,
/**
* Reboot the instance.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
REBOOT,
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy