EmrAddStep

class aws_cdk.aws_stepfunctions_tasks.EmrAddStep(*, cluster_id, jar, name, action_on_failure=None, args=None, integration_pattern=None, main_class=None, properties=None)

Bases: object

A Step Functions Task to add a Step to an EMR Cluster.

The StepConfiguration is defined as Parameters in the state machine definition.

OUTPUT: the StepId

stability :stability: experimental

__init__(*, cluster_id, jar, name, action_on_failure=None, args=None, integration_pattern=None, main_class=None, properties=None)
Parameters
  • cluster_id (str) – The ClusterId to add the Step to.

  • jar (str) – A path to a JAR file run during the step.

  • name (str) – The name of the Step.

  • action_on_failure (Optional[ActionOnFailure]) – The action to take when the cluster step fails. Default: CONTINUE

  • args (Optional[List[str]]) – A list of command line arguments passed to the JAR file’s main function when executed. Default: No args

  • integration_pattern (Optional[ServiceIntegrationPattern]) – The service integration pattern indicates different ways to call AddStep. The valid value is either FIRE_AND_FORGET or SYNC. Default: SYNC

  • main_class (Optional[str]) – The name of the main class in the specified Java file. If not specified, the JAR file should specify a Main-Class in its manifest file. Default: No mainClass

  • properties (Optional[Mapping[str, str]]) – A list of Java properties that are set when the step runs. You can use these properties to pass key value pairs to your main function. Default: No properties

stability :stability: experimental

Return type

None

Methods

bind(_task)

Called when the task object is used in a workflow.

Parameters

_task (Task) –

stability :stability: experimental

Return type

StepFunctionsTaskConfig