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 { AssociateVpcCidrBlockRequest, AssociateVpcCidrBlockResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link AssociateVpcCidrBlockCommand}. */ export interface AssociateVpcCidrBlockCommandInput extends AssociateVpcCidrBlockRequest { } /** * @public * * The output of {@link AssociateVpcCidrBlockCommand}. */ export interface AssociateVpcCidrBlockCommandOutput extends AssociateVpcCidrBlockResult, __MetadataBearer { } declare const AssociateVpcCidrBlockCommand_base: { new (input: AssociateVpcCidrBlockCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: AssociateVpcCidrBlockCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Associates a CIDR block with your VPC. You can associate a secondary IPv4 CIDR block, * an Amazon-provided IPv6 CIDR block, or an IPv6 CIDR block from an IPv6 address pool that * you provisioned through bring your own IP addresses (BYOIP).

*

You must specify one of the following in the request: an IPv4 CIDR block, an IPv6 * pool, or an Amazon-provided IPv6 CIDR block.

*

For more information about associating CIDR blocks with your VPC and applicable * restrictions, see IP addressing for your VPCs and subnets * in the Amazon VPC User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, AssociateVpcCidrBlockCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, AssociateVpcCidrBlockCommand } = 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 = { // AssociateVpcCidrBlockRequest * CidrBlock: "STRING_VALUE", * Ipv6CidrBlockNetworkBorderGroup: "STRING_VALUE", * Ipv6Pool: "STRING_VALUE", * Ipv6CidrBlock: "STRING_VALUE", * Ipv4IpamPoolId: "STRING_VALUE", * Ipv4NetmaskLength: Number("int"), * Ipv6IpamPoolId: "STRING_VALUE", * Ipv6NetmaskLength: Number("int"), * VpcId: "STRING_VALUE", // required * AmazonProvidedIpv6CidrBlock: true || false, * }; * const command = new AssociateVpcCidrBlockCommand(input); * const response = await client.send(command); * // { // AssociateVpcCidrBlockResult * // 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 AssociateVpcCidrBlockCommandInput - {@link AssociateVpcCidrBlockCommandInput} * @returns {@link AssociateVpcCidrBlockCommandOutput} * @see {@link AssociateVpcCidrBlockCommandInput} for command's `input` shape. * @see {@link AssociateVpcCidrBlockCommandOutput} 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 AssociateVpcCidrBlockCommand extends AssociateVpcCidrBlockCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AssociateVpcCidrBlockRequest; output: AssociateVpcCidrBlockResult; }; sdk: { input: AssociateVpcCidrBlockCommandInput; output: AssociateVpcCidrBlockCommandOutput; }; }; }