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 |
Detaches one or more Classic Load Balancers from the specified Auto Scaling group.
This operation detaches only Classic Load Balancers. If you have Application Load Balancers, Network Load Balancers, or Gateway Load Balancers, use the DetachLoadBalancerTargetGroups API instead.
When you detach a load balancer, it enters the Removing
state while
deregistering the instances in the group. When all instances are
deregistered, then you can no longer describe the load balancer using
the DescribeLoadBalancers API call. The instances remain running.
Synopsis
- data DetachLoadBalancers = DetachLoadBalancers' {}
- newDetachLoadBalancers :: Text -> DetachLoadBalancers
- detachLoadBalancers_autoScalingGroupName :: Lens' DetachLoadBalancers Text
- detachLoadBalancers_loadBalancerNames :: Lens' DetachLoadBalancers [Text]
- data DetachLoadBalancersResponse = DetachLoadBalancersResponse' {
- httpStatus :: Int
- newDetachLoadBalancersResponse :: Int -> DetachLoadBalancersResponse
- detachLoadBalancersResponse_httpStatus :: Lens' DetachLoadBalancersResponse Int
Creating a Request
data DetachLoadBalancers Source #
See: newDetachLoadBalancers
smart constructor.
DetachLoadBalancers' | |
|
Instances
newDetachLoadBalancers Source #
Create a value of DetachLoadBalancers
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:DetachLoadBalancers'
, detachLoadBalancers_autoScalingGroupName
- The name of the Auto Scaling group.
$sel:loadBalancerNames:DetachLoadBalancers'
, detachLoadBalancers_loadBalancerNames
- The names of the load balancers. You can specify up to 10 load
balancers.
Request Lenses
detachLoadBalancers_autoScalingGroupName :: Lens' DetachLoadBalancers Text Source #
The name of the Auto Scaling group.
detachLoadBalancers_loadBalancerNames :: Lens' DetachLoadBalancers [Text] Source #
The names of the load balancers. You can specify up to 10 load balancers.
Destructuring the Response
data DetachLoadBalancersResponse Source #
See: newDetachLoadBalancersResponse
smart constructor.
DetachLoadBalancersResponse' | |
|
Instances
newDetachLoadBalancersResponse Source #
Create a value of DetachLoadBalancersResponse
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:DetachLoadBalancersResponse'
, detachLoadBalancersResponse_httpStatus
- The response's http status code.
Response Lenses
detachLoadBalancersResponse_httpStatus :: Lens' DetachLoadBalancersResponse Int Source #
The response's http status code.