aws_sdk_lightsail/client/
detach_instances_from_load_balancer.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`DetachInstancesFromLoadBalancer`](crate::operation::detach_instances_from_load_balancer::builders::DetachInstancesFromLoadBalancerFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`load_balancer_name(impl Into<String>)`](crate::operation::detach_instances_from_load_balancer::builders::DetachInstancesFromLoadBalancerFluentBuilder::load_balancer_name) / [`set_load_balancer_name(Option<String>)`](crate::operation::detach_instances_from_load_balancer::builders::DetachInstancesFromLoadBalancerFluentBuilder::set_load_balancer_name):<br>required: **true**<br><p>The name of the Lightsail load balancer.</p><br>
7    ///   - [`instance_names(impl Into<String>)`](crate::operation::detach_instances_from_load_balancer::builders::DetachInstancesFromLoadBalancerFluentBuilder::instance_names) / [`set_instance_names(Option<Vec::<String>>)`](crate::operation::detach_instances_from_load_balancer::builders::DetachInstancesFromLoadBalancerFluentBuilder::set_instance_names):<br>required: **true**<br><p>An array of strings containing the names of the instances you want to detach from the load balancer.</p><br>
8    /// - On success, responds with [`DetachInstancesFromLoadBalancerOutput`](crate::operation::detach_instances_from_load_balancer::DetachInstancesFromLoadBalancerOutput) with field(s):
9    ///   - [`operations(Option<Vec::<Operation>>)`](crate::operation::detach_instances_from_load_balancer::DetachInstancesFromLoadBalancerOutput::operations): <p>An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.</p>
10    /// - On failure, responds with [`SdkError<DetachInstancesFromLoadBalancerError>`](crate::operation::detach_instances_from_load_balancer::DetachInstancesFromLoadBalancerError)
11    pub fn detach_instances_from_load_balancer(
12        &self,
13    ) -> crate::operation::detach_instances_from_load_balancer::builders::DetachInstancesFromLoadBalancerFluentBuilder {
14        crate::operation::detach_instances_from_load_balancer::builders::DetachInstancesFromLoadBalancerFluentBuilder::new(self.handle.clone())
15    }
16}