AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
 
Attaches one or more load balancers to the specified Auto Scaling group.

To describe the load balancers for an Auto Scaling group, use DescribeLoadBalancers. To detach the load balancer from the Auto Scaling group, use DetachLoadBalancers.

For more information, see Attach a Load Balancer to Your Auto Scaling Group in the Auto Scaling Developer Guide.

Namespace: Amazon.AutoScaling
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public virtual AttachLoadBalancersResponse AttachLoadBalancers(
         AttachLoadBalancersRequest request
)

Parameters

request
Type: Amazon.AutoScaling.Model.AttachLoadBalancersRequest

Container for the necessary parameters to execute the AttachLoadBalancers service method.

Return Value
Type: Amazon.AutoScaling.Model.AttachLoadBalancersResponse
The response from the AttachLoadBalancers service method, as returned by AutoScaling.

Exceptions

ExceptionCondition
ResourceContentionException You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load balancer).

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5