Skip to content

EC2  >  Operations  >  disassociate_subnet_cidr_block

disassociate_subnet_cidr_block

Operation

disassociate_subnet_cidr_block async

disassociate_subnet_cidr_block(request: DisassociateSubnetCidrBlockInput | DisassociateSubnetCidrBlockInputDict, /, *, plugins: list[Plugin] | None = None) -> DisassociateSubnetCidrBlockOutput
disassociate_subnet_cidr_block(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[DisassociateSubnetCidrBlockInputDict]) -> DisassociateSubnetCidrBlockOutput

Disassociates a CIDR block from a subnet. Currently, you can disassociate an IPv6 CIDR block only. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it.

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
DisassociateSubnetCidrBlockOutput

An instance of DisassociateSubnetCidrBlockOutput.

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

DisassociateSubnetCidrBlockInput dataclass

Bases: _SerdeShape

Dataclass for DisassociateSubnetCidrBlockInput structure.

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

The association ID for the CIDR block.

Dictionaries

DisassociateSubnetCidrBlockInputDict

Bases: TypedDict

Dictionary form of DisassociateSubnetCidrBlockInput.

Attributes
association_id instance-attribute
association_id: Required[str]

The association ID for the CIDR block.

Output

DisassociateSubnetCidrBlockOutput dataclass

Bases: _SerdeShape

Dataclass for DisassociateSubnetCidrBlockOutput structure.

Attributes

ipv6_cidr_block_association class-attribute instance-attribute
ipv6_cidr_block_association: SubnetIpv6CidrBlockAssociation | 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.

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

The ID of the subnet.