@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:50.131Z") public enum ActionOnFailure extends java.lang.Enum<ActionOnFailure>
Default: CONTINUE
Example:
EmrAddStep.Builder.create(this, "Task") .clusterId("ClusterId") .name("StepName") .jar("Jar") .actionOnFailure(ActionOnFailure.CONTINUE) .build();
Enum Constant and Description |
---|
CANCEL_AND_WAIT
Cancel Step execution and enter WAITING state.
|
CONTINUE
Continue to the next Step.
|
TERMINATE_CLUSTER
Terminate the Cluster on Step Failure.
|
Modifier and Type | Method and Description |
---|---|
static ActionOnFailure |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ActionOnFailure[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ActionOnFailure TERMINATE_CLUSTER
public static final ActionOnFailure CANCEL_AND_WAIT
public static final ActionOnFailure CONTINUE
public static ActionOnFailure[] values()
for (ActionOnFailure c : ActionOnFailure.values()) System.out.println(c);
public static ActionOnFailure valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null