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 |
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:
$sel:loadBalancerName:AttachLoadBalancerToSubnets'
, attachLoadBalancerToSubnets_loadBalancerName
- The name of the load balancer.
$sel:subnets: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
Eq AttachLoadBalancerToSubnetsResponse Source # | |
Read AttachLoadBalancerToSubnetsResponse Source # | |
Show AttachLoadBalancerToSubnetsResponse Source # | |
Generic AttachLoadBalancerToSubnetsResponse Source # | |
NFData AttachLoadBalancerToSubnetsResponse Source # | |
Defined in Amazonka.ELB.AttachLoadBalancerToSubnets rnf :: AttachLoadBalancerToSubnetsResponse -> () # | |
type Rep AttachLoadBalancerToSubnetsResponse Source # | |
Defined in Amazonka.ELB.AttachLoadBalancerToSubnets type Rep AttachLoadBalancerToSubnetsResponse = D1 ('MetaData "AttachLoadBalancerToSubnetsResponse" "Amazonka.ELB.AttachLoadBalancerToSubnets" "libZSservicesZSamazonka-elbZSamazonka-elb" '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:
$sel:subnets: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.