Skip to content
v2.278.0

ActionOnFailure Enum ​

The action to take when the cluster step fails.

Example ​

ts
new tasks.EmrAddStep(this, 'Task', {
  clusterId: 'ClusterId',
  name: 'StepName',
  jar: 'Jar',
  actionOnFailure: tasks.ActionOnFailure.CONTINUE,
});
python
tasks.EmrAddStep(self, "Task",
    cluster_id="ClusterId",
    name="StepName",
    jar="Jar",
    action_on_failure=tasks.ActionOnFailure.CONTINUE
)
java
EmrAddStep.Builder.create(this, "Task")
        .clusterId("ClusterId")
        .name("StepName")
        .jar("Jar")
        .actionOnFailure(ActionOnFailure.CONTINUE)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
new EmrAddStep(this, "Task", new EmrAddStepProps {
    ClusterId = "ClusterId",
    Name = "StepName",
    Jar = "Jar",
    ActionOnFailure = ActionOnFailure.CONTINUE
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
tasks.NewEmrAddStep(this, jsii.String("Task"), &EmrAddStepProps{
	ClusterId: jsii.String("ClusterId"),
	Name: jsii.String("StepName"),
	Jar: jsii.String("Jar"),
	ActionOnFailure: tasks.ActionOnFailure_CONTINUE,
})

Members ​

MemberDescription
TERMINATE_CLUSTERTerminate the Cluster on Step Failure.
CANCEL_AND_WAITCancel Step execution and enter WAITING state.
CONTINUEContinue to the next Step.

Referenced by ​