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 { DeleteIpamPoolRequest, DeleteIpamPoolResult } from "../models/models_2"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteIpamPoolCommand}. */ export interface DeleteIpamPoolCommandInput extends DeleteIpamPoolRequest { } /** * @public * * The output of {@link DeleteIpamPoolCommand}. */ export interface DeleteIpamPoolCommandOutput extends DeleteIpamPoolResult, __MetadataBearer { } declare const DeleteIpamPoolCommand_base: { new (input: DeleteIpamPoolCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeleteIpamPoolCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Delete an IPAM pool.

* *

You cannot delete an IPAM pool if there are allocations in it or CIDRs provisioned to it. To release * allocations, see ReleaseIpamPoolAllocation. To deprovision pool * CIDRs, see DeprovisionIpamPoolCidr.

*
*

For more information, see Delete a pool in the Amazon VPC IPAM User Guide. *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, DeleteIpamPoolCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, DeleteIpamPoolCommand } = 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 = { // DeleteIpamPoolRequest * DryRun: true || false, * IpamPoolId: "STRING_VALUE", // required * Cascade: true || false, * }; * const command = new DeleteIpamPoolCommand(input); * const response = await client.send(command); * // { // DeleteIpamPoolResult * // IpamPool: { // IpamPool * // OwnerId: "STRING_VALUE", * // IpamPoolId: "STRING_VALUE", * // SourceIpamPoolId: "STRING_VALUE", * // IpamPoolArn: "STRING_VALUE", * // IpamScopeArn: "STRING_VALUE", * // IpamScopeType: "public" || "private", * // IpamArn: "STRING_VALUE", * // IpamRegion: "STRING_VALUE", * // Locale: "STRING_VALUE", * // PoolDepth: Number("int"), * // State: "create-in-progress" || "create-complete" || "create-failed" || "modify-in-progress" || "modify-complete" || "modify-failed" || "delete-in-progress" || "delete-complete" || "delete-failed" || "isolate-in-progress" || "isolate-complete" || "restore-in-progress", * // StateMessage: "STRING_VALUE", * // Description: "STRING_VALUE", * // AutoImport: true || false, * // PubliclyAdvertisable: true || false, * // AddressFamily: "ipv4" || "ipv6", * // AllocationMinNetmaskLength: Number("int"), * // AllocationMaxNetmaskLength: Number("int"), * // AllocationDefaultNetmaskLength: Number("int"), * // AllocationResourceTags: [ // IpamResourceTagList * // { // IpamResourceTag * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // }, * // ], * // Tags: [ // TagList * // { // Tag * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // }, * // ], * // AwsService: "ec2" || "global-services", * // PublicIpSource: "amazon" || "byoip", * // SourceResource: { // IpamPoolSourceResource * // ResourceId: "STRING_VALUE", * // ResourceType: "vpc", * // ResourceRegion: "STRING_VALUE", * // ResourceOwner: "STRING_VALUE", * // }, * // }, * // }; * * ``` * * @param DeleteIpamPoolCommandInput - {@link DeleteIpamPoolCommandInput} * @returns {@link DeleteIpamPoolCommandOutput} * @see {@link DeleteIpamPoolCommandInput} for command's `input` shape. * @see {@link DeleteIpamPoolCommandOutput} 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 DeleteIpamPoolCommand extends DeleteIpamPoolCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteIpamPoolRequest; output: DeleteIpamPoolResult; }; sdk: { input: DeleteIpamPoolCommandInput; output: DeleteIpamPoolCommandOutput; }; }; }