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 |
Enables the Availability Zones for the specified public subnets for the specified Application Load Balancer or Network Load Balancer. The specified subnets replace the previously enabled subnets.
When you specify subnets for a Network Load Balancer, you must include all subnets that were enabled previously, with their existing configurations, plus any additional subnets.
Synopsis
- data SetSubnets = SetSubnets' {}
- newSetSubnets :: Text -> SetSubnets
- setSubnets_subnetMappings :: Lens' SetSubnets (Maybe [SubnetMapping])
- setSubnets_subnets :: Lens' SetSubnets (Maybe [Text])
- setSubnets_ipAddressType :: Lens' SetSubnets (Maybe IpAddressType)
- setSubnets_loadBalancerArn :: Lens' SetSubnets Text
- data SetSubnetsResponse = SetSubnetsResponse' {}
- newSetSubnetsResponse :: Int -> SetSubnetsResponse
- setSubnetsResponse_availabilityZones :: Lens' SetSubnetsResponse (Maybe [AvailabilityZone])
- setSubnetsResponse_ipAddressType :: Lens' SetSubnetsResponse (Maybe IpAddressType)
- setSubnetsResponse_httpStatus :: Lens' SetSubnetsResponse Int
Creating a Request
data SetSubnets Source #
See: newSetSubnets
smart constructor.
SetSubnets' | |
|
Instances
Create a value of SetSubnets
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:subnetMappings:SetSubnets'
, setSubnets_subnetMappings
- The IDs of the public subnets. You can specify only one subnet per
Availability Zone. You must specify either subnets or subnet mappings.
- Application Load Balancers
- You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
- Application Load Balancers on Outposts
- You must specify one Outpost subnet.
- Application Load Balancers on Local Zones
- You can specify subnets from one or more Local Zones.
- Network Load Balancers
- You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet.
$sel:subnets:SetSubnets'
, setSubnets_subnets
- The IDs of the public subnets. You can specify only one subnet per
Availability Zone. You must specify either subnets or subnet mappings.
- Application Load Balancers
- You must specify subnets from at least two Availability Zones.
- Application Load Balancers on Outposts
- You must specify one Outpost subnet.
- Application Load Balancers on Local Zones
- You can specify subnets from one or more Local Zones.
- Network Load Balancers
- You can specify subnets from one or more Availability Zones.
$sel:ipAddressType:SetSubnets'
, setSubnets_ipAddressType
- [Network Load Balancers] The type of IP addresses used by the subnets
for your load balancer. The possible values are ipv4
(for IPv4
addresses) and dualstack
(for IPv4 and IPv6 addresses). You can’t
specify dualstack
for a load balancer with a UDP or TCP_UDP listener.
Internal load balancers must use ipv4
.
$sel:loadBalancerArn:SetSubnets'
, setSubnets_loadBalancerArn
- The Amazon Resource Name (ARN) of the load balancer.
Request Lenses
setSubnets_subnetMappings :: Lens' SetSubnets (Maybe [SubnetMapping]) Source #
The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
- Application Load Balancers
- You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
- Application Load Balancers on Outposts
- You must specify one Outpost subnet.
- Application Load Balancers on Local Zones
- You can specify subnets from one or more Local Zones.
- Network Load Balancers
- You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet.
setSubnets_subnets :: Lens' SetSubnets (Maybe [Text]) Source #
The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
- Application Load Balancers
- You must specify subnets from at least two Availability Zones.
- Application Load Balancers on Outposts
- You must specify one Outpost subnet.
- Application Load Balancers on Local Zones
- You can specify subnets from one or more Local Zones.
- Network Load Balancers
- You can specify subnets from one or more Availability Zones.
setSubnets_ipAddressType :: Lens' SetSubnets (Maybe IpAddressType) Source #
- Network Load Balancers
- The type of IP addresses used by the subnets
for your load balancer. The possible values are
ipv4
(for IPv4 addresses) anddualstack
(for IPv4 and IPv6 addresses). You can’t specifydualstack
for a load balancer with a UDP or TCP_UDP listener. Internal load balancers must useipv4
.
setSubnets_loadBalancerArn :: Lens' SetSubnets Text Source #
The Amazon Resource Name (ARN) of the load balancer.
Destructuring the Response
data SetSubnetsResponse Source #
See: newSetSubnetsResponse
smart constructor.
SetSubnetsResponse' | |
|
Instances
newSetSubnetsResponse Source #
Create a value of SetSubnetsResponse
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:availabilityZones:SetSubnetsResponse'
, setSubnetsResponse_availabilityZones
- Information about the subnets.
$sel:ipAddressType:SetSubnets'
, setSubnetsResponse_ipAddressType
- [Network Load Balancers] The IP address type.
$sel:httpStatus:SetSubnetsResponse'
, setSubnetsResponse_httpStatus
- The response's http status code.
Response Lenses
setSubnetsResponse_availabilityZones :: Lens' SetSubnetsResponse (Maybe [AvailabilityZone]) Source #
Information about the subnets.
setSubnetsResponse_ipAddressType :: Lens' SetSubnetsResponse (Maybe IpAddressType) Source #
- Network Load Balancers
- The IP address type.
setSubnetsResponse_httpStatus :: Lens' SetSubnetsResponse Int Source #
The response's http status code.