Skip to content

/AWS1/CL_EC2=>ASSIGNIPV6ADDRESSES()

About AssignIpv6Addresses

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.

Method Signature

IMPORTING

Required arguments:

IV_NETWORKINTERFACEID TYPE /AWS1/EC2NETWORKINTERFACEID /AWS1/EC2NETWORKINTERFACEID

The ID of the network interface.

Optional arguments:

IV_IPV6ADDRESSCOUNT TYPE /AWS1/EC2INTEGER /AWS1/EC2INTEGER

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.

IT_IPV6ADDRESSES TYPE /AWS1/CL_EC2IPV6ADDRESSLIST_W=>TT_IPV6ADDRESSLIST TT_IPV6ADDRESSLIST

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.

IV_IPV6PREFIXCOUNT TYPE /AWS1/EC2INTEGER /AWS1/EC2INTEGER

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.

IT_IPV6PREFIXES TYPE /AWS1/CL_EC2IPPREFIXLIST_W=>TT_IPPREFIXLIST TT_IPPREFIXLIST

One or more IPv6 prefixes assigned to the network interface. You cannot use this option if you use the Ipv6PrefixCount option.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2ASSIGNIPV6ADDRES01 /AWS1/CL_EC2ASSIGNIPV6ADDRES01