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 { DisassociateNatGatewayAddressRequest, DisassociateNatGatewayAddressResult } from "../models/models_5"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DisassociateNatGatewayAddressCommand}. */ export interface DisassociateNatGatewayAddressCommandInput extends DisassociateNatGatewayAddressRequest { } /** * @public * * The output of {@link DisassociateNatGatewayAddressCommand}. */ export interface DisassociateNatGatewayAddressCommandOutput extends DisassociateNatGatewayAddressResult, __MetadataBearer { } declare const DisassociateNatGatewayAddressCommand_base: { new (input: DisassociateNatGatewayAddressCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DisassociateNatGatewayAddressCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Disassociates secondary Elastic IP addresses (EIPs) from a public NAT gateway. * You cannot disassociate your primary EIP. For more information, see Edit secondary IP address associations in the Amazon VPC User Guide.

*

While disassociating is in progress, you cannot associate/disassociate additional EIPs while the connections are being drained. You are, however, allowed to delete the NAT gateway.

*

An EIP is released only at the end of MaxDrainDurationSeconds. It stays * associated and supports the existing connections but does not support any new connections * (new connections are distributed across the remaining associated EIPs). As the existing * connections drain out, the EIPs (and the corresponding private IP addresses mapped to them) * are released.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, DisassociateNatGatewayAddressCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, DisassociateNatGatewayAddressCommand } = 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 = { // DisassociateNatGatewayAddressRequest * NatGatewayId: "STRING_VALUE", // required * AssociationIds: [ // EipAssociationIdList // required * "STRING_VALUE", * ], * MaxDrainDurationSeconds: Number("int"), * DryRun: true || false, * }; * const command = new DisassociateNatGatewayAddressCommand(input); * const response = await client.send(command); * // { // DisassociateNatGatewayAddressResult * // 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 DisassociateNatGatewayAddressCommandInput - {@link DisassociateNatGatewayAddressCommandInput} * @returns {@link DisassociateNatGatewayAddressCommandOutput} * @see {@link DisassociateNatGatewayAddressCommandInput} for command's `input` shape. * @see {@link DisassociateNatGatewayAddressCommandOutput} 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 DisassociateNatGatewayAddressCommand extends DisassociateNatGatewayAddressCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DisassociateNatGatewayAddressRequest; output: DisassociateNatGatewayAddressResult; }; sdk: { input: DisassociateNatGatewayAddressCommandInput; output: DisassociateNatGatewayAddressCommandOutput; }; }; }