Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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.
Synopsis
- data AttachLoadBalancers = AttachLoadBalancers' {}
- newAttachLoadBalancers :: Text -> AttachLoadBalancers
- attachLoadBalancers_autoScalingGroupName :: Lens' AttachLoadBalancers Text
- attachLoadBalancers_loadBalancerNames :: Lens' AttachLoadBalancers [Text]
- data AttachLoadBalancersResponse = AttachLoadBalancersResponse' {
- httpStatus :: Int
- newAttachLoadBalancersResponse :: Int -> AttachLoadBalancersResponse
- attachLoadBalancersResponse_httpStatus :: Lens' AttachLoadBalancersResponse Int
Creating a Request
data AttachLoadBalancers Source #
See: newAttachLoadBalancers
smart constructor.
AttachLoadBalancers' | |
|
Instances
newAttachLoadBalancers Source #
Create a value of AttachLoadBalancers
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
AttachLoadBalancers
, attachLoadBalancers_autoScalingGroupName
- The name of the Auto Scaling group.
AttachLoadBalancers
, attachLoadBalancers_loadBalancerNames
- The names of the load balancers. You can specify up to 10 load
balancers.
Request Lenses
attachLoadBalancers_autoScalingGroupName :: Lens' AttachLoadBalancers Text Source #
The name of the Auto Scaling group.
attachLoadBalancers_loadBalancerNames :: Lens' AttachLoadBalancers [Text] Source #
The names of the load balancers. You can specify up to 10 load balancers.
Destructuring the Response
data AttachLoadBalancersResponse Source #
See: newAttachLoadBalancersResponse
smart constructor.
AttachLoadBalancersResponse' | |
|
Instances
newAttachLoadBalancersResponse Source #
Create a value of AttachLoadBalancersResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:AttachLoadBalancersResponse'
, attachLoadBalancersResponse_httpStatus
- The response's http status code.
Response Lenses
attachLoadBalancersResponse_httpStatus :: Lens' AttachLoadBalancersResponse Int Source #
The response's http status code.