Skip to content

EC2  >  Operations  >  associate_subnet_cidr_block

associate_subnet_cidr_block

Operation

associate_subnet_cidr_block async

associate_subnet_cidr_block(request: AssociateSubnetCidrBlockInput | AssociateSubnetCidrBlockInputDict, /, *, plugins: list[Plugin] | None = None) -> AssociateSubnetCidrBlockOutput
associate_subnet_cidr_block(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[AssociateSubnetCidrBlockInputDict]) -> AssociateSubnetCidrBlockOutput

Associates a CIDR block with your subnet. You can only associate a single IPv6 CIDR block with your subnet.

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
AssociateSubnetCidrBlockOutput

An instance of AssociateSubnetCidrBlockOutput.

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

AssociateSubnetCidrBlockInput dataclass

Bases: _SerdeShape

Dataclass for AssociateSubnetCidrBlockInput structure.

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

The IPv6 CIDR block for your subnet.

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

An IPv6 IPAM pool ID.

ipv6_netmask_length class-attribute instance-attribute
ipv6_netmask_length: int | None = ...

An IPv6 netmask length.

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

The ID of your subnet.

Dictionaries

AssociateSubnetCidrBlockInputDict

Bases: TypedDict

Dictionary form of AssociateSubnetCidrBlockInput.

Attributes
ipv6_cidr_block instance-attribute
ipv6_cidr_block: str | None

The IPv6 CIDR block for your subnet.

ipv6_ipam_pool_id instance-attribute
ipv6_ipam_pool_id: str | None

An IPv6 IPAM pool ID.

ipv6_netmask_length instance-attribute
ipv6_netmask_length: int | None

An IPv6 netmask length.

subnet_id instance-attribute
subnet_id: Required[str]

The ID of your subnet.

Output

AssociateSubnetCidrBlockOutput dataclass

Bases: _SerdeShape

Dataclass for AssociateSubnetCidrBlockOutput structure.

Attributes

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

Information about the IPv6 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.