Interface Step.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Step.Builder,,Step> SdkBuilder<Step.Builder,,Step> SdkPojo
- Enclosing class:
Step
-
Method Summary
Modifier and TypeMethodDescriptionactionOnFailure(String actionOnFailure) The action to take when the cluster step fails.actionOnFailure(ActionOnFailure actionOnFailure) The action to take when the cluster step fails.default Step.Builderconfig(Consumer<HadoopStepConfig.Builder> config) The Hadoop job configuration of the cluster step.config(HadoopStepConfig config) The Hadoop job configuration of the cluster step.encryptionKeyArn(String encryptionKeyArn) The KMS key ARN to encrypt the logs published to the given Amazon S3 destination.executionRoleArn(String executionRoleArn) The Amazon Resource Name (ARN) of the runtime role for a step on the cluster.The identifier of the cluster step.The Amazon S3 destination URI for log publishing.The name of the cluster step.default Step.Builderstatus(Consumer<StepStatus.Builder> status) The current execution status details of the cluster step.status(StepStatus status) The current execution status details of the cluster step.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
id
The identifier of the cluster step.
- Parameters:
id- The identifier of the cluster step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the cluster step.
- Parameters:
name- The name of the cluster step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
config
The Hadoop job configuration of the cluster step.
- Parameters:
config- The Hadoop job configuration of the cluster step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
config
The Hadoop job configuration of the cluster step.
This is a convenience method that creates an instance of theHadoopStepConfig.Builderavoiding the need to create one manually viaHadoopStepConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconfig(HadoopStepConfig).- Parameters:
config- a consumer that will call methods onHadoopStepConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
actionOnFailure
The action to take when the cluster step fails. Possible values are
TERMINATE_CLUSTER,CANCEL_AND_WAIT, andCONTINUE.TERMINATE_JOB_FLOWis provided for backward compatibility. We recommend usingTERMINATE_CLUSTERinstead.If a cluster's
StepConcurrencyLevelis greater than1, do not useAddJobFlowStepsto submit a step with this parameter set toCANCEL_AND_WAITorTERMINATE_CLUSTER. The step is not submitted and the action fails with a message that theActionOnFailuresetting is not valid.If you change a cluster's
StepConcurrencyLevelto be greater than 1 while a step is running, theActionOnFailureparameter may not behave as you expect. In this case, for a step that fails with this parameter set toCANCEL_AND_WAIT, pending steps and the running step are not canceled; for a step that fails with this parameter set toTERMINATE_CLUSTER, the cluster does not terminate.- Parameters:
actionOnFailure- The action to take when the cluster step fails. Possible values areTERMINATE_CLUSTER,CANCEL_AND_WAIT, andCONTINUE.TERMINATE_JOB_FLOWis provided for backward compatibility. We recommend usingTERMINATE_CLUSTERinstead.If a cluster's
StepConcurrencyLevelis greater than1, do not useAddJobFlowStepsto submit a step with this parameter set toCANCEL_AND_WAITorTERMINATE_CLUSTER. The step is not submitted and the action fails with a message that theActionOnFailuresetting is not valid.If you change a cluster's
StepConcurrencyLevelto be greater than 1 while a step is running, theActionOnFailureparameter may not behave as you expect. In this case, for a step that fails with this parameter set toCANCEL_AND_WAIT, pending steps and the running step are not canceled; for a step that fails with this parameter set toTERMINATE_CLUSTER, the cluster does not terminate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
actionOnFailure
The action to take when the cluster step fails. Possible values are
TERMINATE_CLUSTER,CANCEL_AND_WAIT, andCONTINUE.TERMINATE_JOB_FLOWis provided for backward compatibility. We recommend usingTERMINATE_CLUSTERinstead.If a cluster's
StepConcurrencyLevelis greater than1, do not useAddJobFlowStepsto submit a step with this parameter set toCANCEL_AND_WAITorTERMINATE_CLUSTER. The step is not submitted and the action fails with a message that theActionOnFailuresetting is not valid.If you change a cluster's
StepConcurrencyLevelto be greater than 1 while a step is running, theActionOnFailureparameter may not behave as you expect. In this case, for a step that fails with this parameter set toCANCEL_AND_WAIT, pending steps and the running step are not canceled; for a step that fails with this parameter set toTERMINATE_CLUSTER, the cluster does not terminate.- Parameters:
actionOnFailure- The action to take when the cluster step fails. Possible values areTERMINATE_CLUSTER,CANCEL_AND_WAIT, andCONTINUE.TERMINATE_JOB_FLOWis provided for backward compatibility. We recommend usingTERMINATE_CLUSTERinstead.If a cluster's
StepConcurrencyLevelis greater than1, do not useAddJobFlowStepsto submit a step with this parameter set toCANCEL_AND_WAITorTERMINATE_CLUSTER. The step is not submitted and the action fails with a message that theActionOnFailuresetting is not valid.If you change a cluster's
StepConcurrencyLevelto be greater than 1 while a step is running, theActionOnFailureparameter may not behave as you expect. In this case, for a step that fails with this parameter set toCANCEL_AND_WAIT, pending steps and the running step are not canceled; for a step that fails with this parameter set toTERMINATE_CLUSTER, the cluster does not terminate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current execution status details of the cluster step.
- Parameters:
status- The current execution status details of the cluster step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The current execution status details of the cluster step.
This is a convenience method that creates an instance of theStepStatus.Builderavoiding the need to create one manually viaStepStatus.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostatus(StepStatus).- Parameters:
status- a consumer that will call methods onStepStatus.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
executionRoleArn
The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. The runtime role can be a cross-account IAM role. The runtime role ARN is a combination of account ID, role name, and role type using the following format:
arn:partition:service:region:account:resource.For example,
arn:aws:IAM::1234567890:role/ReadOnlyis a correctly formatted runtime role ARN.- Parameters:
executionRoleArn- The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. The runtime role can be a cross-account IAM role. The runtime role ARN is a combination of account ID, role name, and role type using the following format:arn:partition:service:region:account:resource.For example,
arn:aws:IAM::1234567890:role/ReadOnlyis a correctly formatted runtime role ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logUri
The Amazon S3 destination URI for log publishing.
- Parameters:
logUri- The Amazon S3 destination URI for log publishing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionKeyArn
The KMS key ARN to encrypt the logs published to the given Amazon S3 destination.
- Parameters:
encryptionKeyArn- The KMS key ARN to encrypt the logs published to the given Amazon S3 destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-