ActionOnFailure

class aws_cdk.aws_stepfunctions_tasks.ActionOnFailure(value)

Bases: enum.Enum

The action to take when the cluster step fails.

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.

Example:

tasks.EmrAddStep(self, "Task",
    cluster_id="ClusterId",
    name="StepName",
    jar="Jar",
    action_on_failure=tasks.ActionOnFailure.CONTINUE
)

Attributes

CANCEL_AND_WAIT

Cancel Step execution and enter WAITING state.

CONTINUE

Continue to the next Step.

TERMINATE_CLUSTER

Terminate the Cluster on Step Failure.