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 Summary
Modifier and TypeMethodDescriptionactionOnFailure
(String actionOnFailure) This specifies what action to take when the cluster step fails.build()
static CfnStep.Builder
hadoopJarStep
(IResolvable hadoopJarStep) TheHadoopJarStepConfig
property type specifies a job flow step consisting of a JAR file whose main function will be executed.hadoopJarStep
(CfnStep.HadoopJarStepConfigProperty hadoopJarStep) TheHadoopJarStepConfig
property type specifies a job flow step consisting of a JAR file whose main function will be executed.A string that uniquely identifies the cluster (job flow).The name of the cluster step.
-
Method Details
-
create
@Stability(Stable) public static CfnStep.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnStep.Builder
.
-
actionOnFailure
This specifies what action to take when the cluster step fails.Possible values are
CANCEL_AND_WAIT
andCONTINUE
.- Parameters:
actionOnFailure
- This specifies what action to take when the cluster step fails. This parameter is required.- Returns:
this
- See Also:
-
hadoopJarStep
TheHadoopJarStepConfig
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
- TheHadoopJarStepConfig
property type specifies a job flow step consisting of a JAR file whose main function will be executed. This parameter is required.- Returns:
this
- See Also:
-
hadoopJarStep
@Stability(Stable) public CfnStep.Builder hadoopJarStep(CfnStep.HadoopJarStepConfigProperty hadoopJarStep) TheHadoopJarStepConfig
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
- TheHadoopJarStepConfig
property type specifies a job flow step consisting of a JAR file whose main function will be executed. This parameter is required.- Returns:
this
- See Also:
-
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
- See Also:
-
name
The name of the cluster step.- Parameters:
name
- The name of the cluster step. This parameter is required.- Returns:
this
- See Also:
-
build
-