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 |
Assigns one or more IPv6 addresses to the specified network interface. You can specify one or more specific IPv6 addresses, or you can specify the number of IPv6 addresses to be automatically assigned from within the subnet's IPv6 CIDR block range. You can assign as many IPv6 addresses to a network interface as you can assign private IPv4 addresses, and the limit varies per instance type. For information, see IP Addresses Per Network Interface Per Instance Type in the Amazon Elastic Compute Cloud User Guide.
You must specify either the IPv6 addresses or the IPv6 address count in the request.
You can optionally use Prefix Delegation on the network interface. You must specify either the IPV6 Prefix Delegation prefixes, or the IPv6 Prefix Delegation count. For information, see Assigning prefixes to Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide.
Synopsis
- data AssignIpv6Addresses = AssignIpv6Addresses' {
- ipv6AddressCount :: Maybe Int
- ipv6Addresses :: Maybe [Text]
- ipv6PrefixCount :: Maybe Int
- ipv6Prefixes :: Maybe [Text]
- networkInterfaceId :: Text
- newAssignIpv6Addresses :: Text -> AssignIpv6Addresses
- assignIpv6Addresses_ipv6AddressCount :: Lens' AssignIpv6Addresses (Maybe Int)
- assignIpv6Addresses_ipv6Addresses :: Lens' AssignIpv6Addresses (Maybe [Text])
- assignIpv6Addresses_ipv6PrefixCount :: Lens' AssignIpv6Addresses (Maybe Int)
- assignIpv6Addresses_ipv6Prefixes :: Lens' AssignIpv6Addresses (Maybe [Text])
- assignIpv6Addresses_networkInterfaceId :: Lens' AssignIpv6Addresses Text
- data AssignIpv6AddressesResponse = AssignIpv6AddressesResponse' {}
- newAssignIpv6AddressesResponse :: Int -> AssignIpv6AddressesResponse
- assignIpv6AddressesResponse_assignedIpv6Addresses :: Lens' AssignIpv6AddressesResponse (Maybe [Text])
- assignIpv6AddressesResponse_assignedIpv6Prefixes :: Lens' AssignIpv6AddressesResponse (Maybe [Text])
- assignIpv6AddressesResponse_networkInterfaceId :: Lens' AssignIpv6AddressesResponse (Maybe Text)
- assignIpv6AddressesResponse_httpStatus :: Lens' AssignIpv6AddressesResponse Int
Creating a Request
data AssignIpv6Addresses Source #
See: newAssignIpv6Addresses
smart constructor.
AssignIpv6Addresses' | |
|
Instances
newAssignIpv6Addresses Source #
Create a value of AssignIpv6Addresses
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:
AssignIpv6Addresses
, assignIpv6Addresses_ipv6AddressCount
- The number of additional IPv6 addresses to assign to the network
interface. The specified number of IPv6 addresses are assigned in
addition to the existing IPv6 addresses that are already assigned to the
network interface. Amazon EC2 automatically selects the IPv6 addresses
from the subnet range. You can't use this option if specifying specific
IPv6 addresses.
AssignIpv6Addresses
, assignIpv6Addresses_ipv6Addresses
- The IPv6 addresses to be assigned to the network interface. You can't
use this option if you're specifying a number of IPv6 addresses.
AssignIpv6Addresses
, assignIpv6Addresses_ipv6PrefixCount
- The number of IPv6 prefixes that Amazon Web Services automatically
assigns to the network interface. You cannot use this option if you use
the Ipv6Prefixes
option.
AssignIpv6Addresses
, assignIpv6Addresses_ipv6Prefixes
- One or more IPv6 prefixes assigned to the network interface. You cannot
use this option if you use the Ipv6PrefixCount
option.
AssignIpv6Addresses
, assignIpv6Addresses_networkInterfaceId
- The ID of the network interface.
Request Lenses
assignIpv6Addresses_ipv6AddressCount :: Lens' AssignIpv6Addresses (Maybe Int) Source #
The number of additional IPv6 addresses to assign to the network interface. The specified number of IPv6 addresses are assigned in addition to the existing IPv6 addresses that are already assigned to the network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.
assignIpv6Addresses_ipv6Addresses :: Lens' AssignIpv6Addresses (Maybe [Text]) Source #
The IPv6 addresses to be assigned to the network interface. You can't use this option if you're specifying a number of IPv6 addresses.
assignIpv6Addresses_ipv6PrefixCount :: Lens' AssignIpv6Addresses (Maybe Int) Source #
The number of IPv6 prefixes that Amazon Web Services automatically
assigns to the network interface. You cannot use this option if you use
the Ipv6Prefixes
option.
assignIpv6Addresses_ipv6Prefixes :: Lens' AssignIpv6Addresses (Maybe [Text]) Source #
One or more IPv6 prefixes assigned to the network interface. You cannot
use this option if you use the Ipv6PrefixCount
option.
assignIpv6Addresses_networkInterfaceId :: Lens' AssignIpv6Addresses Text Source #
The ID of the network interface.
Destructuring the Response
data AssignIpv6AddressesResponse Source #
See: newAssignIpv6AddressesResponse
smart constructor.
AssignIpv6AddressesResponse' | |
|
Instances
newAssignIpv6AddressesResponse Source #
Create a value of AssignIpv6AddressesResponse
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:assignedIpv6Addresses:AssignIpv6AddressesResponse'
, assignIpv6AddressesResponse_assignedIpv6Addresses
- The new IPv6 addresses assigned to the network interface. Existing IPv6
addresses that were assigned to the network interface before the request
are not included.
$sel:assignedIpv6Prefixes:AssignIpv6AddressesResponse'
, assignIpv6AddressesResponse_assignedIpv6Prefixes
- The IPv6 prefixes that are assigned to the network interface.
AssignIpv6Addresses
, assignIpv6AddressesResponse_networkInterfaceId
- The ID of the network interface.
$sel:httpStatus:AssignIpv6AddressesResponse'
, assignIpv6AddressesResponse_httpStatus
- The response's http status code.
Response Lenses
assignIpv6AddressesResponse_assignedIpv6Addresses :: Lens' AssignIpv6AddressesResponse (Maybe [Text]) Source #
The new IPv6 addresses assigned to the network interface. Existing IPv6 addresses that were assigned to the network interface before the request are not included.
assignIpv6AddressesResponse_assignedIpv6Prefixes :: Lens' AssignIpv6AddressesResponse (Maybe [Text]) Source #
The IPv6 prefixes that are assigned to the network interface.
assignIpv6AddressesResponse_networkInterfaceId :: Lens' AssignIpv6AddressesResponse (Maybe Text) Source #
The ID of the network interface.
assignIpv6AddressesResponse_httpStatus :: Lens' AssignIpv6AddressesResponse Int Source #
The response's http status code.