Class CfnStep.Builder

java.lang.Object
software.amazon.awscdk.services.emr.CfnStep.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStep>
Enclosing class:
CfnStep

@Stability(Stable) public static final class CfnStep.Builder extends Object implements software.amazon.jsii.Builder<CfnStep>
A fluent builder for CfnStep.
  • Method Details

    • create

      @Stability(Stable) public static CfnStep.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnStep.Builder.
    • actionOnFailure

      @Stability(Stable) public CfnStep.Builder actionOnFailure(String actionOnFailure)
      This specifies what action to take when the cluster step fails.

      Possible values are CANCEL_AND_WAIT and CONTINUE .

      Parameters:
      actionOnFailure - This specifies what action to take when the cluster step fails. This parameter is required.
      Returns:
      this
    • hadoopJarStep

      @Stability(Stable) public CfnStep.Builder hadoopJarStep(IResolvable hadoopJarStep)
      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.

      Parameters:
      hadoopJarStep - The HadoopJarStepConfig property type specifies a job flow step consisting of a JAR file whose main function will be executed. This parameter is required.
      Returns:
      this
    • hadoopJarStep

      @Stability(Stable) public CfnStep.Builder hadoopJarStep(CfnStep.HadoopJarStepConfigProperty hadoopJarStep)
      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.

      Parameters:
      hadoopJarStep - The HadoopJarStepConfig property type specifies a job flow step consisting of a JAR file whose main function will be executed. This parameter is required.
      Returns:
      this
    • jobFlowId

      @Stability(Stable) public CfnStep.Builder jobFlowId(String jobFlowId)
      A string that uniquely identifies the cluster (job flow).

      Parameters:
      jobFlowId - A string that uniquely identifies the cluster (job flow). This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnStep.Builder name(String name)
      The name of the cluster step.

      Parameters:
      name - The name of the cluster step. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnStep build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnStep>
      Returns:
      a newly built instance of CfnStep.