pub struct AttachLoadBalancers { /* private fields */ }Expand description
Fluent builder constructing a request to AttachLoadBalancers.
To attach an Application Load Balancer, Network Load Balancer, or Gateway Load Balancer, use the AttachLoadBalancerTargetGroups API operation instead.
Attaches one or more Classic Load Balancers to the specified Auto Scaling group. Amazon EC2 Auto Scaling registers the running instances with these Classic Load Balancers.
To describe the load balancers for an Auto Scaling group, call the DescribeLoadBalancers API. To detach a load balancer from the Auto Scaling group, call the DetachLoadBalancers API.
This operation is additive and does not detach existing Classic Load Balancers or target groups from the Auto Scaling group.
For more information, see Use Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.
Implementations§
source§impl AttachLoadBalancers
impl AttachLoadBalancers
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<AttachLoadBalancers, AwsResponseRetryClassifier>, SdkError<AttachLoadBalancersError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<AttachLoadBalancers, AwsResponseRetryClassifier>, SdkError<AttachLoadBalancersError>>
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<AttachLoadBalancersOutput, SdkError<AttachLoadBalancersError>>
pub async fn send(
self
) -> Result<AttachLoadBalancersOutput, SdkError<AttachLoadBalancersError>>
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 auto_scaling_group_name(self, input: impl Into<String>) -> Self
pub fn auto_scaling_group_name(self, input: impl Into<String>) -> Self
The name of the Auto Scaling group.
sourcepub fn set_auto_scaling_group_name(self, input: Option<String>) -> Self
pub fn set_auto_scaling_group_name(self, input: Option<String>) -> Self
The name of the Auto Scaling group.
sourcepub fn load_balancer_names(self, input: impl Into<String>) -> Self
pub fn load_balancer_names(self, input: impl Into<String>) -> Self
Appends an item to LoadBalancerNames.
To override the contents of this collection use set_load_balancer_names.
The names of the load balancers. You can specify up to 10 load balancers.
sourcepub fn set_load_balancer_names(self, input: Option<Vec<String>>) -> Self
pub fn set_load_balancer_names(self, input: Option<Vec<String>>) -> Self
The names of the load balancers. You can specify up to 10 load balancers.
Trait Implementations§
source§impl Clone for AttachLoadBalancers
impl Clone for AttachLoadBalancers
source§fn clone(&self) -> AttachLoadBalancers
fn clone(&self) -> AttachLoadBalancers
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more