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 { AssociateNatGatewayAddressRequest, AssociateNatGatewayAddressResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link AssociateNatGatewayAddressCommand}. */ export interface AssociateNatGatewayAddressCommandInput extends AssociateNatGatewayAddressRequest { } /** * @public * * The output of {@link AssociateNatGatewayAddressCommand}. */ export interface AssociateNatGatewayAddressCommandOutput extends AssociateNatGatewayAddressResult, __MetadataBearer { } declare const AssociateNatGatewayAddressCommand_base: { new (input: AssociateNatGatewayAddressCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: AssociateNatGatewayAddressCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Associates Elastic IP addresses (EIPs) and private IPv4 addresses with a public NAT gateway. For more information, * see Work with NAT gateways in the Amazon VPC User Guide.

*

By default, you can associate up to 2 Elastic IP addresses per public NAT gateway. You can increase the limit by requesting a quota adjustment. * For more information, see Elastic IP address quotas in the Amazon VPC User Guide.

* *

When you associate an EIP or secondary EIPs with a public NAT gateway, the network border group of the EIPs * must match the network border group of the Availability Zone (AZ) that the public NAT gateway is in. If it's not the same, * the EIP will fail to associate. You can see the network border group for the subnet's AZ by viewing the details of the subnet. * Similarly, you can view the network border group of an EIP by viewing the details of the EIP address. For more information * about network border groups and EIPs, see Allocate an Elastic IP address in the Amazon VPC User Guide. *

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, AssociateNatGatewayAddressCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, AssociateNatGatewayAddressCommand } = 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 = { // AssociateNatGatewayAddressRequest * NatGatewayId: "STRING_VALUE", // required * AllocationIds: [ // AllocationIdList // required * "STRING_VALUE", * ], * PrivateIpAddresses: [ // IpList * "STRING_VALUE", * ], * DryRun: true || false, * AvailabilityZone: "STRING_VALUE", * AvailabilityZoneId: "STRING_VALUE", * }; * const command = new AssociateNatGatewayAddressCommand(input); * const response = await client.send(command); * // { // AssociateNatGatewayAddressResult * // NatGatewayId: "STRING_VALUE", * // NatGatewayAddresses: [ // NatGatewayAddressList * // { // NatGatewayAddress * // AllocationId: "STRING_VALUE", * // NetworkInterfaceId: "STRING_VALUE", * // PrivateIp: "STRING_VALUE", * // PublicIp: "STRING_VALUE", * // AssociationId: "STRING_VALUE", * // IsPrimary: true || false, * // FailureMessage: "STRING_VALUE", * // Status: "assigning" || "unassigning" || "associating" || "disassociating" || "succeeded" || "failed", * // AvailabilityZone: "STRING_VALUE", * // AvailabilityZoneId: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param AssociateNatGatewayAddressCommandInput - {@link AssociateNatGatewayAddressCommandInput} * @returns {@link AssociateNatGatewayAddressCommandOutput} * @see {@link AssociateNatGatewayAddressCommandInput} for command's `input` shape. * @see {@link AssociateNatGatewayAddressCommandOutput} 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 AssociateNatGatewayAddressCommand extends AssociateNatGatewayAddressCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AssociateNatGatewayAddressRequest; output: AssociateNatGatewayAddressResult; }; sdk: { input: AssociateNatGatewayAddressCommandInput; output: AssociateNatGatewayAddressCommandOutput; }; }; }