Struct aws_sdk_emr::operation::set_unhealthy_node_replacement::builders::SetUnhealthyNodeReplacementFluentBuilder
source · pub struct SetUnhealthyNodeReplacementFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to SetUnhealthyNodeReplacement.
Specify whether to enable unhealthy node replacement, which lets Amazon EMR gracefully replace core nodes on a cluster if any nodes become unhealthy. For example, a node becomes unhealthy if disk usage is above 90%. If unhealthy node replacement is on and TerminationProtected are off, Amazon EMR immediately terminates the unhealthy core nodes. To use unhealthy node replacement and retain unhealthy core nodes, use to turn on termination protection. In such cases, Amazon EMR adds the unhealthy nodes to a denylist, reducing job interruptions and failures.
If unhealthy node replacement is on, Amazon EMR notifies YARN and other applications on the cluster to stop scheduling tasks with these nodes, moves the data, and then terminates the nodes.
For more information, see graceful node replacement in the Amazon EMR Management Guide.
Implementations§
source§impl SetUnhealthyNodeReplacementFluentBuilder
impl SetUnhealthyNodeReplacementFluentBuilder
sourcepub fn as_input(&self) -> &SetUnhealthyNodeReplacementInputBuilder
pub fn as_input(&self) -> &SetUnhealthyNodeReplacementInputBuilder
Access the SetUnhealthyNodeReplacement as a reference.
sourcepub async fn send(
self,
) -> Result<SetUnhealthyNodeReplacementOutput, SdkError<SetUnhealthyNodeReplacementError, HttpResponse>>
pub async fn send( self, ) -> Result<SetUnhealthyNodeReplacementOutput, SdkError<SetUnhealthyNodeReplacementError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self,
) -> CustomizableOperation<SetUnhealthyNodeReplacementOutput, SetUnhealthyNodeReplacementError, Self>
pub fn customize( self, ) -> CustomizableOperation<SetUnhealthyNodeReplacementOutput, SetUnhealthyNodeReplacementError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn job_flow_ids(self, input: impl Into<String>) -> Self
pub fn job_flow_ids(self, input: impl Into<String>) -> Self
Appends an item to JobFlowIds.
To override the contents of this collection use set_job_flow_ids.
The list of strings that uniquely identify the clusters for which to turn on unhealthy node replacement. You can get these identifiers by running the RunJobFlow or the DescribeJobFlows operations.
sourcepub fn set_job_flow_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_job_flow_ids(self, input: Option<Vec<String>>) -> Self
The list of strings that uniquely identify the clusters for which to turn on unhealthy node replacement. You can get these identifiers by running the RunJobFlow or the DescribeJobFlows operations.
sourcepub fn get_job_flow_ids(&self) -> &Option<Vec<String>>
pub fn get_job_flow_ids(&self) -> &Option<Vec<String>>
The list of strings that uniquely identify the clusters for which to turn on unhealthy node replacement. You can get these identifiers by running the RunJobFlow or the DescribeJobFlows operations.
sourcepub fn unhealthy_node_replacement(self, input: bool) -> Self
pub fn unhealthy_node_replacement(self, input: bool) -> Self
Indicates whether to turn on or turn off graceful unhealthy node replacement.
sourcepub fn set_unhealthy_node_replacement(self, input: Option<bool>) -> Self
pub fn set_unhealthy_node_replacement(self, input: Option<bool>) -> Self
Indicates whether to turn on or turn off graceful unhealthy node replacement.
sourcepub fn get_unhealthy_node_replacement(&self) -> &Option<bool>
pub fn get_unhealthy_node_replacement(&self) -> &Option<bool>
Indicates whether to turn on or turn off graceful unhealthy node replacement.
Trait Implementations§
source§impl Clone for SetUnhealthyNodeReplacementFluentBuilder
impl Clone for SetUnhealthyNodeReplacementFluentBuilder
source§fn clone(&self) -> SetUnhealthyNodeReplacementFluentBuilder
fn clone(&self) -> SetUnhealthyNodeReplacementFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SetUnhealthyNodeReplacementFluentBuilder
impl !RefUnwindSafe for SetUnhealthyNodeReplacementFluentBuilder
impl Send for SetUnhealthyNodeReplacementFluentBuilder
impl Sync for SetUnhealthyNodeReplacementFluentBuilder
impl Unpin for SetUnhealthyNodeReplacementFluentBuilder
impl !UnwindSafe for SetUnhealthyNodeReplacementFluentBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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