Skip to content

EC2  >  Operations  >  disassociate_vpc_cidr_block

disassociate_vpc_cidr_block

Operation

disassociate_vpc_cidr_block async

disassociate_vpc_cidr_block(request: DisassociateVpcCidrBlockInput | DisassociateVpcCidrBlockInputDict, /, *, plugins: list[Plugin] | None = None) -> DisassociateVpcCidrBlockOutput
disassociate_vpc_cidr_block(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[DisassociateVpcCidrBlockInputDict]) -> DisassociateVpcCidrBlockOutput

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).

Parameters:

Name Type Description Default
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DisassociateVpcCidrBlockOutput

An instance of DisassociateVpcCidrBlockOutput.

Input

Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.

Model

DisassociateVpcCidrBlockInput dataclass

Bases: _SerdeShape

Dataclass for DisassociateVpcCidrBlockInput structure.

Attributes
association_id class-attribute instance-attribute
association_id: str | None = ...

The association ID for the CIDR block.

Dictionaries

DisassociateVpcCidrBlockInputDict

Bases: TypedDict

Dictionary form of DisassociateVpcCidrBlockInput.

Attributes
association_id instance-attribute
association_id: Required[str]

The association ID for the CIDR block.

Output

DisassociateVpcCidrBlockOutput dataclass

Bases: _SerdeShape

Dataclass for DisassociateVpcCidrBlockOutput structure.

Attributes

cidr_block_association class-attribute instance-attribute
cidr_block_association: VpcCidrBlockAssociation | None = ...

Information about the IPv4 CIDR block association.

ipv6_cidr_block_association class-attribute instance-attribute
ipv6_cidr_block_association: VpcIpv6CidrBlockAssociation | None = ...

Information about the IPv6 CIDR block association.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

vpc_id class-attribute instance-attribute
vpc_id: str | None = ...

The ID of the VPC.