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 |
Adds one or more subnets to the set of configured subnets for the specified load balancer.
The load balancer evenly distributes requests across all registered subnets. For more information, see Add or Remove Subnets for Your Load Balancer in a VPC in the Classic Load Balancers Guide.
Synopsis
- data AttachLoadBalancerToSubnets = AttachLoadBalancerToSubnets' {
- loadBalancerName :: Text
- subnets :: [Text]
- newAttachLoadBalancerToSubnets :: Text -> AttachLoadBalancerToSubnets
- attachLoadBalancerToSubnets_loadBalancerName :: Lens' AttachLoadBalancerToSubnets Text
- attachLoadBalancerToSubnets_subnets :: Lens' AttachLoadBalancerToSubnets [Text]
- data AttachLoadBalancerToSubnetsResponse = AttachLoadBalancerToSubnetsResponse' {
- subnets :: Maybe [Text]
- httpStatus :: Int
- newAttachLoadBalancerToSubnetsResponse :: Int -> AttachLoadBalancerToSubnetsResponse
- attachLoadBalancerToSubnetsResponse_subnets :: Lens' AttachLoadBalancerToSubnetsResponse (Maybe [Text])
- attachLoadBalancerToSubnetsResponse_httpStatus :: Lens' AttachLoadBalancerToSubnetsResponse Int
Creating a Request
data AttachLoadBalancerToSubnets Source #
Contains the parameters for AttachLoaBalancerToSubnets.
See: newAttachLoadBalancerToSubnets
smart constructor.
AttachLoadBalancerToSubnets' | |
|
Instances
newAttachLoadBalancerToSubnets Source #
Create a value of AttachLoadBalancerToSubnets
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:
AttachLoadBalancerToSubnets
, attachLoadBalancerToSubnets_loadBalancerName
- The name of the load balancer.
AttachLoadBalancerToSubnets
, attachLoadBalancerToSubnets_subnets
- The IDs of the subnets to add. You can add only one subnet per
Availability Zone.
Request Lenses
attachLoadBalancerToSubnets_loadBalancerName :: Lens' AttachLoadBalancerToSubnets Text Source #
The name of the load balancer.
attachLoadBalancerToSubnets_subnets :: Lens' AttachLoadBalancerToSubnets [Text] Source #
The IDs of the subnets to add. You can add only one subnet per Availability Zone.
Destructuring the Response
data AttachLoadBalancerToSubnetsResponse Source #
Contains the output of AttachLoadBalancerToSubnets.
See: newAttachLoadBalancerToSubnetsResponse
smart constructor.
AttachLoadBalancerToSubnetsResponse' | |
|
Instances
Generic AttachLoadBalancerToSubnetsResponse Source # | |
Read AttachLoadBalancerToSubnetsResponse Source # | |
Show AttachLoadBalancerToSubnetsResponse Source # | |
NFData AttachLoadBalancerToSubnetsResponse Source # | |
Defined in Amazonka.ELB.AttachLoadBalancerToSubnets rnf :: AttachLoadBalancerToSubnetsResponse -> () # | |
Eq AttachLoadBalancerToSubnetsResponse Source # | |
type Rep AttachLoadBalancerToSubnetsResponse Source # | |
Defined in Amazonka.ELB.AttachLoadBalancerToSubnets type Rep AttachLoadBalancerToSubnetsResponse = D1 ('MetaData "AttachLoadBalancerToSubnetsResponse" "Amazonka.ELB.AttachLoadBalancerToSubnets" "amazonka-elb-2.0-9cSN5cNCwnD5ZanKSOxHTf" 'False) (C1 ('MetaCons "AttachLoadBalancerToSubnetsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "subnets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newAttachLoadBalancerToSubnetsResponse Source #
Create a value of AttachLoadBalancerToSubnetsResponse
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:
AttachLoadBalancerToSubnets
, attachLoadBalancerToSubnetsResponse_subnets
- The IDs of the subnets attached to the load balancer.
$sel:httpStatus:AttachLoadBalancerToSubnetsResponse'
, attachLoadBalancerToSubnetsResponse_httpStatus
- The response's http status code.
Response Lenses
attachLoadBalancerToSubnetsResponse_subnets :: Lens' AttachLoadBalancerToSubnetsResponse (Maybe [Text]) Source #
The IDs of the subnets attached to the load balancer.
attachLoadBalancerToSubnetsResponse_httpStatus :: Lens' AttachLoadBalancerToSubnetsResponse Int Source #
The response's http status code.