CfnStepProps

class aws_cdk.aws_emr.CfnStepProps(*, action_on_failure, hadoop_jar_step, job_flow_id, name)

Bases: object

Properties for defining a CfnStep.

Parameters
  • action_on_failure (str) – This specifies what action to take when the cluster step fails. Possible values are CANCEL_AND_WAIT and CONTINUE .

  • hadoop_jar_step (Union[IResolvable, HadoopJarStepConfigProperty, Dict[str, Any]]) – The HadoopJarStepConfig property type specifies a job flow step consisting of a JAR file whose main function will be executed. The main function submits a job for the cluster to execute as a step on the master node, and then waits for the job to finish or fail before executing subsequent steps.

  • job_flow_id (str) – A string that uniquely identifies the cluster (job flow).

  • name (str) – The name of the cluster step.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-step.html

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_emr as emr

cfn_step_props = emr.CfnStepProps(
    action_on_failure="actionOnFailure",
    hadoop_jar_step=emr.CfnStep.HadoopJarStepConfigProperty(
        jar="jar",

        # the properties below are optional
        args=["args"],
        main_class="mainClass",
        step_properties=[emr.CfnStep.KeyValueProperty(
            key="key",
            value="value"
        )]
    ),
    job_flow_id="jobFlowId",
    name="name"
)

Attributes

action_on_failure

This specifies what action to take when the cluster step fails.

Possible values are CANCEL_AND_WAIT and CONTINUE .

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-step.html#cfn-elasticmapreduce-step-actiononfailure

Return type

str

hadoop_jar_step

The HadoopJarStepConfig property type specifies a job flow step consisting of a JAR file whose main function will be executed.

The main function submits a job for the cluster to execute as a step on the master node, and then waits for the job to finish or fail before executing subsequent steps.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-step.html#cfn-elasticmapreduce-step-hadoopjarstep

Return type

Union[IResolvable, HadoopJarStepConfigProperty]

job_flow_id

A string that uniquely identifies the cluster (job flow).

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-step.html#cfn-elasticmapreduce-step-jobflowid

Return type

str

name

The name of the cluster step.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-step.html#cfn-elasticmapreduce-step-name

Return type

str