Struct aws_sdk_emr::types::builders::StepBuilder
source · #[non_exhaustive]pub struct StepBuilder { /* private fields */ }
Expand description
A builder for Step
.
Implementations§
source§impl StepBuilder
impl StepBuilder
sourcepub fn config(self, input: HadoopStepConfig) -> Self
pub fn config(self, input: HadoopStepConfig) -> Self
The Hadoop job configuration of the cluster step.
sourcepub fn set_config(self, input: Option<HadoopStepConfig>) -> Self
pub fn set_config(self, input: Option<HadoopStepConfig>) -> Self
The Hadoop job configuration of the cluster step.
sourcepub fn get_config(&self) -> &Option<HadoopStepConfig>
pub fn get_config(&self) -> &Option<HadoopStepConfig>
The Hadoop job configuration of the cluster step.
sourcepub fn action_on_failure(self, input: ActionOnFailure) -> Self
pub fn action_on_failure(self, input: ActionOnFailure) -> Self
The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER
, CANCEL_AND_WAIT
, and CONTINUE
. TERMINATE_JOB_FLOW
is provided for backward compatibility. We recommend using TERMINATE_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 cluster step fails. Possible values are TERMINATE_CLUSTER
, CANCEL_AND_WAIT
, and CONTINUE
. TERMINATE_JOB_FLOW
is provided for backward compatibility. We recommend using TERMINATE_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 cluster step fails. Possible values are TERMINATE_CLUSTER
, CANCEL_AND_WAIT
, and CONTINUE
. TERMINATE_JOB_FLOW
is provided for backward compatibility. We recommend using TERMINATE_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 status(self, input: StepStatus) -> Self
pub fn status(self, input: StepStatus) -> Self
The current execution status details of the cluster step.
sourcepub fn set_status(self, input: Option<StepStatus>) -> Self
pub fn set_status(self, input: Option<StepStatus>) -> Self
The current execution status details of the cluster step.
sourcepub fn get_status(&self) -> &Option<StepStatus>
pub fn get_status(&self) -> &Option<StepStatus>
The current execution status details of the cluster step.
sourcepub fn execution_role_arn(self, input: impl Into<String>) -> Self
pub fn execution_role_arn(self, input: impl Into<String>) -> Self
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/ReadOnly
is a correctly formatted runtime role ARN.
sourcepub fn set_execution_role_arn(self, input: Option<String>) -> Self
pub fn set_execution_role_arn(self, input: Option<String>) -> Self
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/ReadOnly
is a correctly formatted runtime role ARN.
sourcepub fn get_execution_role_arn(&self) -> &Option<String>
pub fn get_execution_role_arn(&self) -> &Option<String>
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/ReadOnly
is a correctly formatted runtime role ARN.
Trait Implementations§
source§impl Clone for StepBuilder
impl Clone for StepBuilder
source§fn clone(&self) -> StepBuilder
fn clone(&self) -> StepBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StepBuilder
impl Debug for StepBuilder
source§impl Default for StepBuilder
impl Default for StepBuilder
source§fn default() -> StepBuilder
fn default() -> StepBuilder
source§impl PartialEq for StepBuilder
impl PartialEq for StepBuilder
source§fn eq(&self, other: &StepBuilder) -> bool
fn eq(&self, other: &StepBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.