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 theWAITINGstate. -
CONTINUE- Continues to the next step in the queue. -
TERMINATE_JOB_FLOW- Shuts down the cluster.TERMINATE_JOB_FLOWis provided for backward compatibility. We recommend usingTERMINATE_CLUSTERinstead.
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 theWAITINGstate. -
CONTINUE- Continues to the next step in the queue. -
TERMINATE_JOB_FLOW- Shuts down the cluster.TERMINATE_JOB_FLOWis provided for backward compatibility. We recommend usingTERMINATE_CLUSTERinstead.
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 theWAITINGstate. -
CONTINUE- Continues to the next step in the queue. -
TERMINATE_JOB_FLOW- Shuts down the cluster.TERMINATE_JOB_FLOWis provided for backward compatibility. We recommend usingTERMINATE_CLUSTERinstead.
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 ==.impl StructuralPartialEq for StepConfigBuilder
Auto Trait Implementations§
impl Freeze for StepConfigBuilder
impl RefUnwindSafe for StepConfigBuilder
impl Send for StepConfigBuilder
impl Sync for StepConfigBuilder
impl Unpin for StepConfigBuilder
impl UnwindSafe for StepConfigBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more