Struct aws_sdk_emr::types::builders::StepConfigBuilder
source · #[non_exhaustive]pub struct StepConfigBuilder { /* private fields */ }
Expand description
A builder for StepConfig
.
Implementations§
source§impl StepConfigBuilder
impl StepConfigBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the step.
This field is required.sourcepub fn action_on_failure(self, input: ActionOnFailure) -> Self
pub fn action_on_failure(self, input: ActionOnFailure) -> Self
The action to take when the step fails. Use one of the following values:
-
TERMINATE_CLUSTER
- Shuts down the cluster. -
CANCEL_AND_WAIT
- Cancels any pending steps and returns the cluster to theWAITING
state. -
CONTINUE
- Continues to the next step in the queue. -
TERMINATE_JOB_FLOW
- Shuts down the cluster.TERMINATE_JOB_FLOW
is provided for backward compatibility. We recommend usingTERMINATE_CLUSTER
instead.
If a cluster's StepConcurrencyLevel
is greater than 1
, do not use AddJobFlowSteps
to submit a step with this parameter set to CANCEL_AND_WAIT
or TERMINATE_CLUSTER
. The step is not submitted and the action fails with a message that the ActionOnFailure
setting is not valid.
If you change a cluster's StepConcurrencyLevel
to be greater than 1 while a step is running, the ActionOnFailure
parameter may not behave as you expect. In this case, for a step that fails with this parameter set to CANCEL_AND_WAIT
, pending steps and the running step are not canceled; for a step that fails with this parameter set to TERMINATE_CLUSTER
, the cluster does not terminate.
sourcepub fn set_action_on_failure(self, input: Option<ActionOnFailure>) -> Self
pub fn set_action_on_failure(self, input: Option<ActionOnFailure>) -> Self
The action to take when the step fails. Use one of the following values:
-
TERMINATE_CLUSTER
- Shuts down the cluster. -
CANCEL_AND_WAIT
- Cancels any pending steps and returns the cluster to theWAITING
state. -
CONTINUE
- Continues to the next step in the queue. -
TERMINATE_JOB_FLOW
- Shuts down the cluster.TERMINATE_JOB_FLOW
is provided for backward compatibility. We recommend usingTERMINATE_CLUSTER
instead.
If a cluster's StepConcurrencyLevel
is greater than 1
, do not use AddJobFlowSteps
to submit a step with this parameter set to CANCEL_AND_WAIT
or TERMINATE_CLUSTER
. The step is not submitted and the action fails with a message that the ActionOnFailure
setting is not valid.
If you change a cluster's StepConcurrencyLevel
to be greater than 1 while a step is running, the ActionOnFailure
parameter may not behave as you expect. In this case, for a step that fails with this parameter set to CANCEL_AND_WAIT
, pending steps and the running step are not canceled; for a step that fails with this parameter set to TERMINATE_CLUSTER
, the cluster does not terminate.
sourcepub fn get_action_on_failure(&self) -> &Option<ActionOnFailure>
pub fn get_action_on_failure(&self) -> &Option<ActionOnFailure>
The action to take when the step fails. Use one of the following values:
-
TERMINATE_CLUSTER
- Shuts down the cluster. -
CANCEL_AND_WAIT
- Cancels any pending steps and returns the cluster to theWAITING
state. -
CONTINUE
- Continues to the next step in the queue. -
TERMINATE_JOB_FLOW
- Shuts down the cluster.TERMINATE_JOB_FLOW
is provided for backward compatibility. We recommend usingTERMINATE_CLUSTER
instead.
If a cluster's StepConcurrencyLevel
is greater than 1
, do not use AddJobFlowSteps
to submit a step with this parameter set to CANCEL_AND_WAIT
or TERMINATE_CLUSTER
. The step is not submitted and the action fails with a message that the ActionOnFailure
setting is not valid.
If you change a cluster's StepConcurrencyLevel
to be greater than 1 while a step is running, the ActionOnFailure
parameter may not behave as you expect. In this case, for a step that fails with this parameter set to CANCEL_AND_WAIT
, pending steps and the running step are not canceled; for a step that fails with this parameter set to TERMINATE_CLUSTER
, the cluster does not terminate.
sourcepub fn hadoop_jar_step(self, input: HadoopJarStepConfig) -> Self
pub fn hadoop_jar_step(self, input: HadoopJarStepConfig) -> Self
The JAR file used for the step.
This field is required.sourcepub fn set_hadoop_jar_step(self, input: Option<HadoopJarStepConfig>) -> Self
pub fn set_hadoop_jar_step(self, input: Option<HadoopJarStepConfig>) -> Self
The JAR file used for the step.
sourcepub fn get_hadoop_jar_step(&self) -> &Option<HadoopJarStepConfig>
pub fn get_hadoop_jar_step(&self) -> &Option<HadoopJarStepConfig>
The JAR file used for the step.
sourcepub fn build(self) -> StepConfig
pub fn build(self) -> StepConfig
Consumes the builder and constructs a StepConfig
.
Trait Implementations§
source§impl Clone for StepConfigBuilder
impl Clone for StepConfigBuilder
source§fn clone(&self) -> StepConfigBuilder
fn clone(&self) -> StepConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StepConfigBuilder
impl Debug for StepConfigBuilder
source§impl Default for StepConfigBuilder
impl Default for StepConfigBuilder
source§fn default() -> StepConfigBuilder
fn default() -> StepConfigBuilder
source§impl PartialEq for StepConfigBuilder
impl PartialEq for StepConfigBuilder
source§fn eq(&self, other: &StepConfigBuilder) -> bool
fn eq(&self, other: &StepConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.