Struct aws_sdk_elasticloadbalancingv2::operation::deregister_targets::builders::DeregisterTargetsFluentBuilder
source · pub struct DeregisterTargetsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DeregisterTargets
.
Deregisters the specified targets from the specified target group. After the targets are deregistered, they no longer receive traffic from the load balancer.
The load balancer stops sending requests to targets that are deregistering, but uses connection draining to ensure that in-flight traffic completes on the existing connections. This deregistration delay is configured by default but can be updated for each target group.
For more information, see the following:
-
Deregistration delay in the Application Load Balancers User Guide
-
Deregistration delay in the Network Load Balancers User Guide
-
Deregistration delay in the Gateway Load Balancers User Guide
Note: If the specified target does not exist, the action returns successfully.
Implementations§
source§impl DeregisterTargetsFluentBuilder
impl DeregisterTargetsFluentBuilder
sourcepub fn as_input(&self) -> &DeregisterTargetsInputBuilder
pub fn as_input(&self) -> &DeregisterTargetsInputBuilder
Access the DeregisterTargets as a reference.
sourcepub async fn send(
self
) -> Result<DeregisterTargetsOutput, SdkError<DeregisterTargetsError, HttpResponse>>
pub async fn send( self ) -> Result<DeregisterTargetsOutput, SdkError<DeregisterTargetsError, 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<DeregisterTargetsOutput, DeregisterTargetsError, Self>
pub fn customize( self ) -> CustomizableOperation<DeregisterTargetsOutput, DeregisterTargetsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn target_group_arn(self, input: impl Into<String>) -> Self
pub fn target_group_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the target group.
sourcepub fn set_target_group_arn(self, input: Option<String>) -> Self
pub fn set_target_group_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the target group.
sourcepub fn get_target_group_arn(&self) -> &Option<String>
pub fn get_target_group_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the target group.
sourcepub fn targets(self, input: TargetDescription) -> Self
pub fn targets(self, input: TargetDescription) -> Self
Appends an item to Targets
.
To override the contents of this collection use set_targets
.
The targets. If you specified a port override when you registered a target, you must specify both the target ID and the port when you deregister it.
sourcepub fn set_targets(self, input: Option<Vec<TargetDescription>>) -> Self
pub fn set_targets(self, input: Option<Vec<TargetDescription>>) -> Self
The targets. If you specified a port override when you registered a target, you must specify both the target ID and the port when you deregister it.
sourcepub fn get_targets(&self) -> &Option<Vec<TargetDescription>>
pub fn get_targets(&self) -> &Option<Vec<TargetDescription>>
The targets. If you specified a port override when you registered a target, you must specify both the target ID and the port when you deregister it.
Trait Implementations§
source§impl Clone for DeregisterTargetsFluentBuilder
impl Clone for DeregisterTargetsFluentBuilder
source§fn clone(&self) -> DeregisterTargetsFluentBuilder
fn clone(&self) -> DeregisterTargetsFluentBuilder
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 DeregisterTargetsFluentBuilder
impl !RefUnwindSafe for DeregisterTargetsFluentBuilder
impl Send for DeregisterTargetsFluentBuilder
impl Sync for DeregisterTargetsFluentBuilder
impl Unpin for DeregisterTargetsFluentBuilder
impl !UnwindSafe for DeregisterTargetsFluentBuilder
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