| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.AutoScaling.DetachLoadBalancers
Description
Detaches one or more Classic Load Balancers from the specified Auto Scaling group.
Note that this operation detaches only Classic Load Balancers. If you have Application Load Balancers, use DetachLoadBalancerTargetGroups 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 DescribeLoadBalancers . Note that the instances remain running.
Synopsis
- detachLoadBalancers :: Text -> DetachLoadBalancers
- data DetachLoadBalancers
- dAutoScalingGroupName :: Lens' DetachLoadBalancers Text
- dLoadBalancerNames :: Lens' DetachLoadBalancers [Text]
- detachLoadBalancersResponse :: Int -> DetachLoadBalancersResponse
- data DetachLoadBalancersResponse
- dlbsrsResponseStatus :: Lens' DetachLoadBalancersResponse Int
Creating a Request
Arguments
| :: Text | |
| -> DetachLoadBalancers |
Creates a value of DetachLoadBalancers with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dAutoScalingGroupName- The name of the Auto Scaling group.dLoadBalancerNames- The names of the load balancers. You can specify up to 10 load balancers.
data DetachLoadBalancers Source #
See: detachLoadBalancers smart constructor.
Instances
Request Lenses
dAutoScalingGroupName :: Lens' DetachLoadBalancers Text Source #
The name of the Auto Scaling group.
dLoadBalancerNames :: Lens' DetachLoadBalancers [Text] Source #
The names of the load balancers. You can specify up to 10 load balancers.
Destructuring the Response
detachLoadBalancersResponse Source #
Arguments
| :: Int | |
| -> DetachLoadBalancersResponse |
Creates a value of DetachLoadBalancersResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dlbsrsResponseStatus- -- | The response status code.
data DetachLoadBalancersResponse Source #
See: detachLoadBalancersResponse smart constructor.
Instances
Response Lenses
dlbsrsResponseStatus :: Lens' DetachLoadBalancersResponse Int Source #
- - | The response status code.