EC2 / Client / associate_subnet_cidr_block
associate_subnet_cidr_block#
- EC2.Client.associate_subnet_cidr_block(**kwargs)#
Associates a CIDR block with your subnet. You can only associate a single IPv6 CIDR block with your subnet.
See also: AWS API Documentation
Request Syntax
response = client.associate_subnet_cidr_block( Ipv6CidrBlock='string', SubnetId='string', Ipv6IpamPoolId='string', Ipv6NetmaskLength=123 )
- Parameters:
Ipv6CidrBlock (string) – The IPv6 CIDR block for your subnet.
SubnetId (string) –
[REQUIRED]
The ID of your subnet.
Ipv6IpamPoolId (string) – An IPv6 IPAM pool ID.
Ipv6NetmaskLength (integer) – An IPv6 netmask length.
- Return type:
dict
- Returns:
Response Syntax
{ 'Ipv6CidrBlockAssociation': { 'AssociationId': 'string', 'Ipv6CidrBlock': 'string', 'Ipv6CidrBlockState': { 'State': 'associating'|'associated'|'disassociating'|'disassociated'|'failing'|'failed', 'StatusMessage': 'string' } }, 'SubnetId': 'string' }
Response Structure
(dict) –
Ipv6CidrBlockAssociation (dict) –
Information about the IPv6 association.
AssociationId (string) –
The ID of the association.
Ipv6CidrBlock (string) –
The IPv6 CIDR block.
Ipv6CidrBlockState (dict) –
The state of the CIDR block.
State (string) –
The state of a CIDR block.
StatusMessage (string) –
A message about the status of the CIDR block, if applicable.
SubnetId (string) –
The ID of the subnet.