pub struct AttachLoadBalancerTargetGroups { /* private fields */ }Expand description
Fluent builder constructing a request to AttachLoadBalancerTargetGroups.
Attaches one or more target groups to the specified Auto Scaling group.
This operation is used with the following load balancer types:
-
Application Load Balancer - Operates at the application layer (layer 7) and supports HTTP and HTTPS.
-
Network Load Balancer - Operates at the transport layer (layer 4) and supports TCP, TLS, and UDP.
-
Gateway Load Balancer - Operates at the network layer (layer 3).
To describe the target groups for an Auto Scaling group, call the DescribeLoadBalancerTargetGroups API. To detach the target group from the Auto Scaling group, call the DetachLoadBalancerTargetGroups API.
This operation is additive and does not detach existing target groups or Classic Load Balancers 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 AttachLoadBalancerTargetGroups
impl AttachLoadBalancerTargetGroups
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<AttachLoadBalancerTargetGroups, AwsResponseRetryClassifier>, SdkError<AttachLoadBalancerTargetGroupsError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<AttachLoadBalancerTargetGroups, AwsResponseRetryClassifier>, SdkError<AttachLoadBalancerTargetGroupsError>>
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<AttachLoadBalancerTargetGroupsOutput, SdkError<AttachLoadBalancerTargetGroupsError>>
pub async fn send(
self
) -> Result<AttachLoadBalancerTargetGroupsOutput, SdkError<AttachLoadBalancerTargetGroupsError>>
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 target_group_ar_ns(self, input: impl Into<String>) -> Self
pub fn target_group_ar_ns(self, input: impl Into<String>) -> Self
Appends an item to TargetGroupARNs.
To override the contents of this collection use set_target_group_ar_ns.
The Amazon Resource Names (ARN) of the target groups. You can specify up to 10 target groups. To get the ARN of a target group, use the Elastic Load Balancing DescribeTargetGroups API operation.
sourcepub fn set_target_group_ar_ns(self, input: Option<Vec<String>>) -> Self
pub fn set_target_group_ar_ns(self, input: Option<Vec<String>>) -> Self
The Amazon Resource Names (ARN) of the target groups. You can specify up to 10 target groups. To get the ARN of a target group, use the Elastic Load Balancing DescribeTargetGroups API operation.
Trait Implementations§
source§impl Clone for AttachLoadBalancerTargetGroups
impl Clone for AttachLoadBalancerTargetGroups
source§fn clone(&self) -> AttachLoadBalancerTargetGroups
fn clone(&self) -> AttachLoadBalancerTargetGroups
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more