Enum EmrCreateCluster.EmrClusterScaleDownBehavior

All Implemented Interfaces:
Serializable, Comparable<EmrCreateCluster.EmrClusterScaleDownBehavior>, java.lang.constant.Constable
Enclosing class:

@Stability(Stable) public static enum EmrCreateCluster.EmrClusterScaleDownBehavior extends Enum<EmrCreateCluster.EmrClusterScaleDownBehavior>
The Cluster ScaleDownBehavior specifies the way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized.

See Also:
  • Enum Constant Details


      @Stability(Stable) public static final EmrCreateCluster.EmrClusterScaleDownBehavior TERMINATE_AT_INSTANCE_HOUR
      Indicates that Amazon EMR terminates nodes at the instance-hour boundary, regardless of when the request to terminate the instance was submitted.

      This option is only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that version


      @Stability(Stable) public static final EmrCreateCluster.EmrClusterScaleDownBehavior TERMINATE_AT_TASK_COMPLETION
      Indicates that Amazon EMR adds nodes to a deny list and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the instance-hour boundary.
  • Method Details

    • values

      Returns an array containing the constants of this enum type, in the order they are declared.
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null