Assign Ipv 6 Addresses
ec2_assign_ipv_6_addresses | R Documentation |
Assigns one or more IPv6 addresses to the specified network interface¶
Description¶
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.
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 network interfaces in the Amazon EC2 User Guide.
Usage¶
ec2_assign_ipv_6_addresses(Ipv6AddressCount, Ipv6Addresses,
Ipv6PrefixCount, Ipv6Prefixes, NetworkInterfaceId)
Arguments¶
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.
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.
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.Ipv6Prefixes
One or more IPv6 prefixes assigned to the network interface. You cannot use this option if you use the
Ipv6PrefixCount
option.NetworkInterfaceId
[required] The ID of the network interface.
Value¶
A list with the following syntax:
list(
AssignedIpv6Addresses = list(
"string"
),
AssignedIpv6Prefixes = list(
"string"
),
NetworkInterfaceId = "string"
)