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 { ReleaseAddressRequest } from "../models/models_7"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ReleaseAddressCommand}. */ export interface ReleaseAddressCommandInput extends ReleaseAddressRequest { } /** * @public * * The output of {@link ReleaseAddressCommand}. */ export interface ReleaseAddressCommandOutput extends __MetadataBearer { } declare const ReleaseAddressCommand_base: { new (input: ReleaseAddressCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [ReleaseAddressCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Releases the specified Elastic IP address.

*

[Default VPC] Releasing an Elastic IP address automatically disassociates it * from any instance that it's associated with. Alternatively, you can disassociate an Elastic IP address without * releasing it.

*

[Nondefault VPC] You must disassociate the Elastic IP address * before you can release it. Otherwise, Amazon EC2 returns an error (InvalidIPAddress.InUse).

*

After releasing an Elastic IP address, it is released to the IP address pool. * Be sure to update your DNS records and any servers or devices that communicate with the address. * If you attempt to release an Elastic IP address that you already released, you'll get an * AuthFailure error if the address is already allocated to another Amazon Web Services account.

*

After you release an Elastic IP address, you might be able to recover it. * For more information, see Release an Elastic IP address.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, ReleaseAddressCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, ReleaseAddressCommand } = 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 = { // ReleaseAddressRequest * AllocationId: "STRING_VALUE", * PublicIp: "STRING_VALUE", * NetworkBorderGroup: "STRING_VALUE", * DryRun: true || false, * }; * const command = new ReleaseAddressCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param ReleaseAddressCommandInput - {@link ReleaseAddressCommandInput} * @returns {@link ReleaseAddressCommandOutput} * @see {@link ReleaseAddressCommandInput} for command's `input` shape. * @see {@link ReleaseAddressCommandOutput} 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.

* * * @example To release an Elastic IP address * ```javascript * // This example releases the specified Elastic IP address. * const input = { * AllocationId: "eipalloc-64d5890a" * }; * const command = new ReleaseAddressCommand(input); * const response = await client.send(command); * /* response is * { /* metadata only *\/ } * *\/ * ``` * * @public */ export declare class ReleaseAddressCommand extends ReleaseAddressCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ReleaseAddressRequest; output: {}; }; sdk: { input: ReleaseAddressCommandInput; output: ReleaseAddressCommandOutput; }; }; }