pub struct DetachInstancesFromLoadBalancer<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to DetachInstancesFromLoadBalancer
.
Detaches the specified instances from a Lightsail load balancer.
This operation waits until the instances are no longer needed before they are detached from the load balancer.
The detach instances from load balancer
operation supports tag-based access control via resource tags applied to the resource identified by load balancer name
. For more information, see the Amazon Lightsail Developer Guide.
Implementations
impl<C, M, R> DetachInstancesFromLoadBalancer<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> DetachInstancesFromLoadBalancer<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<DetachInstancesFromLoadBalancerOutput, SdkError<DetachInstancesFromLoadBalancerError>> where
R::Policy: SmithyRetryPolicy<DetachInstancesFromLoadBalancerInputOperationOutputAlias, DetachInstancesFromLoadBalancerOutput, DetachInstancesFromLoadBalancerError, DetachInstancesFromLoadBalancerInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<DetachInstancesFromLoadBalancerOutput, SdkError<DetachInstancesFromLoadBalancerError>> where
R::Policy: SmithyRetryPolicy<DetachInstancesFromLoadBalancerInputOperationOutputAlias, DetachInstancesFromLoadBalancerOutput, DetachInstancesFromLoadBalancerError, DetachInstancesFromLoadBalancerInputOperationRetryAlias>,
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.
The name of the Lightsail load balancer.
The name of the Lightsail load balancer.
Appends an item to instanceNames
.
To override the contents of this collection use set_instance_names
.
An array of strings containing the names of the instances you want to detach from the load balancer.
An array of strings containing the names of the instances you want to detach from the load balancer.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for DetachInstancesFromLoadBalancer<C, M, R>
impl<C, M, R> Send for DetachInstancesFromLoadBalancer<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for DetachInstancesFromLoadBalancer<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for DetachInstancesFromLoadBalancer<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for DetachInstancesFromLoadBalancer<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more