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.
example
Use a bare-bones client and the command you need to make an API call.
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.
Use a bare-bones client and the command you need to make an API call.
import { EC2Client, AssignIpv6AddressesCommand } from "@aws-sdk/client-ec2"; // ES Modules import // const { EC2Client, AssignIpv6AddressesCommand } = require("@aws-sdk/client-ec2"); // CommonJS import const client = new EC2Client(config); const command = new AssignIpv6AddressesCommand(input); const response = await client.send(command);
AssignIpv6AddressesCommandInput for command's
input
shape.AssignIpv6AddressesCommandOutput for command's
response
shape.config for EC2Client's
config
shape.