Class CfnStepMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.emr.CfnStepMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStepMixinProps>
- Enclosing interface:
CfnStepMixinProps
@Stability(Stable)
public static final class CfnStepMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStepMixinProps>
A builder for
CfnStepMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionOnFailure(String actionOnFailure) Sets the value ofCfnStepMixinProps.getActionOnFailure()build()Builds the configured instance.encryptionKeyArn(String encryptionKeyArn) Sets the value ofCfnStepMixinProps.getEncryptionKeyArn()hadoopJarStep(CfnStepPropsMixin.HadoopJarStepConfigProperty hadoopJarStep) Sets the value ofCfnStepMixinProps.getHadoopJarStep()hadoopJarStep(IResolvable hadoopJarStep) Sets the value ofCfnStepMixinProps.getHadoopJarStep()Sets the value ofCfnStepMixinProps.getJobFlowId()Sets the value ofCfnStepMixinProps.getLogUri()Sets the value ofCfnStepMixinProps.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionOnFailure
Sets the value ofCfnStepMixinProps.getActionOnFailure()- Parameters:
actionOnFailure- This specifies what action to take when the cluster step fails. Possible values areCANCEL_AND_WAITandCONTINUE.- Returns:
this
-
encryptionKeyArn
Sets the value ofCfnStepMixinProps.getEncryptionKeyArn()- Parameters:
encryptionKeyArn- The KMS key ARN to encrypt the logs published to the given Amazon S3 destination. When omitted, EMR falls back to cluster-level logging behavior.- Returns:
this
-
hadoopJarStep
Sets the value ofCfnStepMixinProps.getHadoopJarStep()- Parameters:
hadoopJarStep- TheHadoopJarStepConfigproperty 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.- Returns:
this
-
hadoopJarStep
@Stability(Stable) public CfnStepMixinProps.Builder hadoopJarStep(CfnStepPropsMixin.HadoopJarStepConfigProperty hadoopJarStep) Sets the value ofCfnStepMixinProps.getHadoopJarStep()- Parameters:
hadoopJarStep- TheHadoopJarStepConfigproperty 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.- Returns:
this
-
jobFlowId
Sets the value ofCfnStepMixinProps.getJobFlowId()- Parameters:
jobFlowId- A string that uniquely identifies the cluster (job flow).- Returns:
this
-
logUri
Sets the value ofCfnStepMixinProps.getLogUri()- Parameters:
logUri- The Amazon S3 destination URI for log publishing. When omitted, EMR falls back to cluster-level logging behavior.- Returns:
this
-
name
Sets the value ofCfnStepMixinProps.getName()- Parameters:
name- The name of the cluster step.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStepMixinProps>- Returns:
- a new instance of
CfnStepMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-