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

Disassociates a CIDR block from a VPC. To disassociate the CIDR block, you must * specify its association ID. You can get the association ID by using * DescribeVpcs. You must detach or delete all gateways and resources that * are associated with the CIDR block before you can disassociate it.

*

You cannot disassociate the CIDR block with which you originally created the VPC (the * primary CIDR block).

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, DisassociateVpcCidrBlockCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, DisassociateVpcCidrBlockCommand } = 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 = { // DisassociateVpcCidrBlockRequest * AssociationId: "STRING_VALUE", // required * }; * const command = new DisassociateVpcCidrBlockCommand(input); * const response = await client.send(command); * // { // DisassociateVpcCidrBlockResult * // Ipv6CidrBlockAssociation: { // VpcIpv6CidrBlockAssociation * // AssociationId: "STRING_VALUE", * // Ipv6CidrBlock: "STRING_VALUE", * // Ipv6CidrBlockState: { // VpcCidrBlockState * // State: "associating" || "associated" || "disassociating" || "disassociated" || "failing" || "failed", * // StatusMessage: "STRING_VALUE", * // }, * // NetworkBorderGroup: "STRING_VALUE", * // Ipv6Pool: "STRING_VALUE", * // Ipv6AddressAttribute: "public" || "private", * // IpSource: "amazon" || "byoip" || "none", * // }, * // CidrBlockAssociation: { // VpcCidrBlockAssociation * // AssociationId: "STRING_VALUE", * // CidrBlock: "STRING_VALUE", * // CidrBlockState: { * // State: "associating" || "associated" || "disassociating" || "disassociated" || "failing" || "failed", * // StatusMessage: "STRING_VALUE", * // }, * // }, * // VpcId: "STRING_VALUE", * // }; * * ``` * * @param DisassociateVpcCidrBlockCommandInput - {@link DisassociateVpcCidrBlockCommandInput} * @returns {@link DisassociateVpcCidrBlockCommandOutput} * @see {@link DisassociateVpcCidrBlockCommandInput} for command's `input` shape. * @see {@link DisassociateVpcCidrBlockCommandOutput} 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 DisassociateVpcCidrBlockCommand extends DisassociateVpcCidrBlockCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DisassociateVpcCidrBlockRequest; output: DisassociateVpcCidrBlockResult; }; sdk: { input: DisassociateVpcCidrBlockCommandInput; output: DisassociateVpcCidrBlockCommandOutput; }; }; }