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 { ReleaseIpamPoolAllocationRequest, ReleaseIpamPoolAllocationResult } from "../models/models_7"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ReleaseIpamPoolAllocationCommand}. */ export interface ReleaseIpamPoolAllocationCommandInput extends ReleaseIpamPoolAllocationRequest { } /** * @public * * The output of {@link ReleaseIpamPoolAllocationCommand}. */ export interface ReleaseIpamPoolAllocationCommandOutput extends ReleaseIpamPoolAllocationResult, __MetadataBearer { } declare const ReleaseIpamPoolAllocationCommand_base: { new (input: ReleaseIpamPoolAllocationCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ReleaseIpamPoolAllocationCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Release an allocation within an IPAM pool. The Region you use should be the IPAM pool locale. The locale is the Amazon Web Services Region where this IPAM pool is available for allocations. You can only use this action to release manual allocations. To remove an allocation for a resource without deleting the resource, set its monitored state to false using ModifyIpamResourceCidr. For more information, see Release an allocation in the Amazon VPC IPAM User Guide. *

* *

All EC2 API actions follow an eventual consistency model.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, ReleaseIpamPoolAllocationCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, ReleaseIpamPoolAllocationCommand } = 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 = { // ReleaseIpamPoolAllocationRequest * DryRun: true || false, * IpamPoolId: "STRING_VALUE", // required * Cidr: "STRING_VALUE", // required * IpamPoolAllocationId: "STRING_VALUE", // required * }; * const command = new ReleaseIpamPoolAllocationCommand(input); * const response = await client.send(command); * // { // ReleaseIpamPoolAllocationResult * // Success: true || false, * // }; * * ``` * * @param ReleaseIpamPoolAllocationCommandInput - {@link ReleaseIpamPoolAllocationCommandInput} * @returns {@link ReleaseIpamPoolAllocationCommandOutput} * @see {@link ReleaseIpamPoolAllocationCommandInput} for command's `input` shape. * @see {@link ReleaseIpamPoolAllocationCommandOutput} 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 ReleaseIpamPoolAllocationCommand extends ReleaseIpamPoolAllocationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ReleaseIpamPoolAllocationRequest; output: ReleaseIpamPoolAllocationResult; }; sdk: { input: ReleaseIpamPoolAllocationCommandInput; output: ReleaseIpamPoolAllocationCommandOutput; }; }; }