Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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 the load balancer from the Auto Scaling group, call the DetachLoadBalancers API.
For more information, see Elastic Load Balancing and Amazon EC2 Auto Scaling 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:
$sel:autoScalingGroupName:AttachLoadBalancers'
, attachLoadBalancers_autoScalingGroupName
- The name of the Auto Scaling group.
$sel:loadBalancerNames: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.