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 |
Removes the specified subnets from the set of configured subnets for the load balancer.
After a subnet is removed, all EC2 instances registered with the load
balancer in the removed subnet go into the OutOfService
state. Then,
the load balancer balances the traffic among the remaining routable
subnets.
Synopsis
- data DetachLoadBalancerFromSubnets = DetachLoadBalancerFromSubnets' {
- loadBalancerName :: Text
- subnets :: [Text]
- newDetachLoadBalancerFromSubnets :: Text -> DetachLoadBalancerFromSubnets
- detachLoadBalancerFromSubnets_loadBalancerName :: Lens' DetachLoadBalancerFromSubnets Text
- detachLoadBalancerFromSubnets_subnets :: Lens' DetachLoadBalancerFromSubnets [Text]
- data DetachLoadBalancerFromSubnetsResponse = DetachLoadBalancerFromSubnetsResponse' {
- subnets :: Maybe [Text]
- httpStatus :: Int
- newDetachLoadBalancerFromSubnetsResponse :: Int -> DetachLoadBalancerFromSubnetsResponse
- detachLoadBalancerFromSubnetsResponse_subnets :: Lens' DetachLoadBalancerFromSubnetsResponse (Maybe [Text])
- detachLoadBalancerFromSubnetsResponse_httpStatus :: Lens' DetachLoadBalancerFromSubnetsResponse Int
Creating a Request
data DetachLoadBalancerFromSubnets Source #
Contains the parameters for DetachLoadBalancerFromSubnets.
See: newDetachLoadBalancerFromSubnets
smart constructor.
DetachLoadBalancerFromSubnets' | |
|
Instances
newDetachLoadBalancerFromSubnets Source #
Create a value of DetachLoadBalancerFromSubnets
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:loadBalancerName:DetachLoadBalancerFromSubnets'
, detachLoadBalancerFromSubnets_loadBalancerName
- The name of the load balancer.
$sel:subnets:DetachLoadBalancerFromSubnets'
, detachLoadBalancerFromSubnets_subnets
- The IDs of the subnets.
Request Lenses
detachLoadBalancerFromSubnets_loadBalancerName :: Lens' DetachLoadBalancerFromSubnets Text Source #
The name of the load balancer.
detachLoadBalancerFromSubnets_subnets :: Lens' DetachLoadBalancerFromSubnets [Text] Source #
The IDs of the subnets.
Destructuring the Response
data DetachLoadBalancerFromSubnetsResponse Source #
Contains the output of DetachLoadBalancerFromSubnets.
See: newDetachLoadBalancerFromSubnetsResponse
smart constructor.
DetachLoadBalancerFromSubnetsResponse' | |
|
Instances
newDetachLoadBalancerFromSubnetsResponse Source #
Create a value of DetachLoadBalancerFromSubnetsResponse
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:subnets:DetachLoadBalancerFromSubnets'
, detachLoadBalancerFromSubnetsResponse_subnets
- The IDs of the remaining subnets for the load balancer.
$sel:httpStatus:DetachLoadBalancerFromSubnetsResponse'
, detachLoadBalancerFromSubnetsResponse_httpStatus
- The response's http status code.
Response Lenses
detachLoadBalancerFromSubnetsResponse_subnets :: Lens' DetachLoadBalancerFromSubnetsResponse (Maybe [Text]) Source #
The IDs of the remaining subnets for the load balancer.
detachLoadBalancerFromSubnetsResponse_httpStatus :: Lens' DetachLoadBalancerFromSubnetsResponse Int Source #
The response's http status code.