EmrAddStepProps

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

Bases: object

__init__(*, cluster_id, jar, name, action_on_failure=None, args=None, integration_pattern=None, main_class=None, properties=None)

Properties for EmrAddStep.

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

Attributes

action_on_failure

The action to take when the cluster step fails.

default :default: CONTINUE

see :see: https://docs.aws.amazon.com/emr/latest/APIReference/API_StepConfig.html stability :stability: experimental

Return type

Optional[ActionOnFailure]

args

A list of command line arguments passed to the JAR file’s main function when executed.

default :default: No args

see :see: https://docs.aws.amazon.com/emr/latest/APIReference/API_HadoopJarStepConfig.html stability :stability: experimental

Return type

Optional[List[str]]

cluster_id

The ClusterId to add the Step to.

stability :stability: experimental

Return type

str

integration_pattern

The service integration pattern indicates different ways to call AddStep.

The valid value is either FIRE_AND_FORGET or SYNC.

default :default: SYNC

stability :stability: experimental

Return type

Optional[ServiceIntegrationPattern]

jar

A path to a JAR file run during the step.

see :see: https://docs.aws.amazon.com/emr/latest/APIReference/API_HadoopJarStepConfig.html stability :stability: experimental

Return type

str

main_class

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 :default: No mainClass

see :see: https://docs.aws.amazon.com/emr/latest/APIReference/API_HadoopJarStepConfig.html stability :stability: experimental

Return type

Optional[str]

name

The name of the Step.

see :see: https://docs.aws.amazon.com/emr/latest/APIReference/API_StepConfig.html stability :stability: experimental

Return type

str

properties

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 :default: No properties

see :see: https://docs.aws.amazon.com/emr/latest/APIReference/API_HadoopJarStepConfig.html stability :stability: experimental

Return type

Optional[Mapping[str, str]]