aws-cdk-lib.aws_stepfunctions_tasks.ActionOnFailure

enum ActionOnFailure

LanguageType name
.NETAmazon.CDK.AWS.StepFunctions.Tasks.ActionOnFailure
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#ActionOnFailure
Javasoftware.amazon.awscdk.services.stepfunctions.tasks.ActionOnFailure
Pythonaws_cdk.aws_stepfunctions_tasks.ActionOnFailure
TypeScript (source)aws-cdk-lib » aws_stepfunctions_tasks » ActionOnFailure

The action to take when the cluster step fails.

See also: [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.](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

new tasks.EmrAddStep(this, 'Task', {
  clusterId: 'ClusterId',
  name: 'StepName',
  jar: 'Jar',
  actionOnFailure: tasks.ActionOnFailure.CONTINUE,
});

Members

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

TERMINATE_CLUSTER

Terminate the Cluster on Step Failure.


CANCEL_AND_WAIT

Cancel Step execution and enter WAITING state.


CONTINUE

Continue to the next Step.