Class Step
- java.lang.Object
-
- software.amazon.awssdk.services.emr.model.Step
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Step.Builder,Step>
@Generated("software.amazon.awssdk:codegen") public final class Step extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Step.Builder,Step>
This represents a step in a cluster.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStep.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionOnFailureactionOnFailure()The action to take when the cluster step fails.StringactionOnFailureAsString()The action to take when the cluster step fails.static Step.Builderbuilder()HadoopStepConfigconfig()The Hadoop job configuration of the cluster step.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringexecutionRoleArn()The Amazon Resource Name (ARN) of the runtime role for a step on the cluster.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The identifier of the cluster step.Stringname()The name of the cluster step.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Step.Builder>serializableBuilderClass()StepStatusstatus()The current execution status details of the cluster step.Step.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
id
public final String id()
The identifier of the cluster step.
- Returns:
- The identifier of the cluster step.
-
name
public final String name()
The name of the cluster step.
- Returns:
- The name of the cluster step.
-
config
public final HadoopStepConfig config()
The Hadoop job configuration of the cluster step.
- Returns:
- The Hadoop job configuration of the cluster step.
-
actionOnFailure
public final ActionOnFailure 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.If the service returns an enum value that is not available in the current SDK version,
actionOnFailurewill returnActionOnFailure.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionOnFailureAsString().- Returns:
- 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. - See Also:
ActionOnFailure
-
actionOnFailureAsString
public final String actionOnFailureAsString()
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.If the service returns an enum value that is not available in the current SDK version,
actionOnFailurewill returnActionOnFailure.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionOnFailureAsString().- Returns:
- 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. - See Also:
ActionOnFailure
-
status
public final StepStatus status()
The current execution status details of the cluster step.
- Returns:
- The current execution status details of the cluster step.
-
executionRoleArn
public final String 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:
- 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.
-
toBuilder
public Step.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Step.Builder,Step>
-
builder
public static Step.Builder builder()
-
serializableBuilderClass
public static Class<? extends Step.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-