Class ActionOnFailure
The action to take when the cluster step fails.
Inheritance
System.Object
ActionOnFailure
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class ActionOnFailure : Enum
Syntax (vb)
Public NotInheritable Class ActionOnFailure
Inherits
Enum
Remarks
Default: CONTINUE
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_StepConfig.html
Here, they are named as TERMINATE_JOB_FLOW, TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE respectively.
ExampleMetadata: infused
Examples
new EmrAddStep(this, "Task", new EmrAddStepProps {
ClusterId = "ClusterId",
Name = "StepName",
Jar = "Jar",
ActionOnFailure = ActionOnFailure.CONTINUE
});
Synopsis
Fields
CANCEL_AND_WAIT | Cancel Step execution and enter WAITING state. |
CONTINUE | Continue to the next Step. |
TERMINATE_CLUSTER | Terminate the Cluster on Step Failure. |
value__ |
Fields
CANCEL_AND_WAIT
Cancel Step execution and enter WAITING state.
public const ActionOnFailure CANCEL_AND_WAIT
Field Value
Type | Description |
---|---|
ActionOnFailure |
CONTINUE
Continue to the next Step.
public const ActionOnFailure CONTINUE
Field Value
Type | Description |
---|---|
ActionOnFailure |
TERMINATE_CLUSTER
Terminate the Cluster on Step Failure.
public const ActionOnFailure TERMINATE_CLUSTER
Field Value
Type | Description |
---|---|
ActionOnFailure |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |