Struct aws_sdk_elasticloadbalancing::client::fluent_builders::DeregisterInstancesFromLoadBalancer
source · pub struct DeregisterInstancesFromLoadBalancer { /* private fields */ }
Expand description
Fluent builder constructing a request to DeregisterInstancesFromLoadBalancer
.
Deregisters the specified instances from the specified load balancer. After the instance is deregistered, it no longer receives traffic from the load balancer.
You can use DescribeLoadBalancers
to verify that the instance is deregistered from the load balancer.
For more information, see Register or De-Register EC2 Instances in the Classic Load Balancers Guide.
Implementations§
source§impl DeregisterInstancesFromLoadBalancer
impl DeregisterInstancesFromLoadBalancer
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DeregisterInstancesFromLoadBalancer, AwsResponseRetryClassifier>, SdkError<DeregisterInstancesFromLoadBalancerError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<DeregisterInstancesFromLoadBalancer, AwsResponseRetryClassifier>, SdkError<DeregisterInstancesFromLoadBalancerError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<DeregisterInstancesFromLoadBalancerOutput, SdkError<DeregisterInstancesFromLoadBalancerError>>
pub async fn send(
self
) -> Result<DeregisterInstancesFromLoadBalancerOutput, SdkError<DeregisterInstancesFromLoadBalancerError>>
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 load_balancer_name(self, input: impl Into<String>) -> Self
pub fn load_balancer_name(self, input: impl Into<String>) -> Self
The name of the load balancer.
sourcepub fn set_load_balancer_name(self, input: Option<String>) -> Self
pub fn set_load_balancer_name(self, input: Option<String>) -> Self
The name of the load balancer.
sourcepub fn instances(self, input: Instance) -> Self
pub fn instances(self, input: Instance) -> Self
Appends an item to Instances
.
To override the contents of this collection use set_instances
.
The IDs of the instances.
sourcepub fn set_instances(self, input: Option<Vec<Instance>>) -> Self
pub fn set_instances(self, input: Option<Vec<Instance>>) -> Self
The IDs of the instances.
Trait Implementations§
source§impl Clone for DeregisterInstancesFromLoadBalancer
impl Clone for DeregisterInstancesFromLoadBalancer
source§fn clone(&self) -> DeregisterInstancesFromLoadBalancer
fn clone(&self) -> DeregisterInstancesFromLoadBalancer
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more