import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client"; import type { AssignIpv6AddressesRequest, AssignIpv6AddressesResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link AssignIpv6AddressesCommand}. */ export interface AssignIpv6AddressesCommandInput extends AssignIpv6AddressesRequest { } /** * @public * * The output of {@link AssignIpv6AddressesCommand}. */ export interface AssignIpv6AddressesCommandOutput extends AssignIpv6AddressesResult, __MetadataBearer { } declare const AssignIpv6AddressesCommand_base: { new (input: AssignIpv6AddressesCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: AssignIpv6AddressesCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Assigns the specified IPv6 addresses to the specified network interface. You can * specify specific IPv6 addresses, or you can specify the number of IPv6 addresses to be * automatically assigned from 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 by 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.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, AssignIpv6AddressesCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, AssignIpv6AddressesCommand } = require("@aws-sdk/client-ec2"); // CommonJS import * // import type { EC2ClientConfig } from "@aws-sdk/client-ec2"; * const config = {}; // type is EC2ClientConfig * const client = new EC2Client(config); * const input = { // AssignIpv6AddressesRequest * Ipv6PrefixCount: Number("int"), * Ipv6Prefixes: [ // IpPrefixList * "STRING_VALUE", * ], * NetworkInterfaceId: "STRING_VALUE", // required * Ipv6Addresses: [ // Ipv6AddressList * "STRING_VALUE", * ], * Ipv6AddressCount: Number("int"), * }; * const command = new AssignIpv6AddressesCommand(input); * const response = await client.send(command); * // { // AssignIpv6AddressesResult * // AssignedIpv6Addresses: [ // Ipv6AddressList * // "STRING_VALUE", * // ], * // AssignedIpv6Prefixes: [ // IpPrefixList * // "STRING_VALUE", * // ], * // NetworkInterfaceId: "STRING_VALUE", * // }; * * ``` * * @param AssignIpv6AddressesCommandInput - {@link AssignIpv6AddressesCommandInput} * @returns {@link AssignIpv6AddressesCommandOutput} * @see {@link AssignIpv6AddressesCommandInput} for command's `input` shape. * @see {@link AssignIpv6AddressesCommandOutput} for command's `response` shape. * @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape. * * @throws {@link EC2ServiceException} *

Base exception class for all service exceptions from EC2 service.

* * * @public */ export declare class AssignIpv6AddressesCommand extends AssignIpv6AddressesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AssignIpv6AddressesRequest; output: AssignIpv6AddressesResult; }; sdk: { input: AssignIpv6AddressesCommandInput; output: AssignIpv6AddressesCommandOutput; }; }; }