Skip to main content

vpc_cidr_block

Gets an individual vpc_cidr_block resource

Overview

Namevpc_cidr_block
TypeResource
DescriptionResource Type definition for AWS::EC2::VPCCidrBlock
Idaws.ec2.vpc_cidr_block

Fields

NameDatatypeDescription
cidr_blockstringAn IPv4 CIDR block to associate with the VPC.
ipv6_poolstringThe ID of an IPv6 address pool from which to allocate the IPv6 CIDR block.
idstringThe Id of the VPC associated CIDR Block.
vpc_idstringThe ID of the VPC.
ipv6_cidr_blockstringAn IPv6 CIDR block from the IPv6 address pool.
ipv4_ipam_pool_idstringThe ID of the IPv4 IPAM pool to Associate a CIDR from to a VPC.
ipv4_netmask_lengthintegerThe netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.
ipv6_ipam_pool_idstringThe ID of the IPv6 IPAM pool to Associate a CIDR from to a VPC.
ipv6_netmask_lengthintegerThe netmask length of the IPv6 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.
amazon_provided_ipv6_cidr_blockbooleanRequests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block.
regionstringAWS region.

Methods

NameAccessible byRequired Params
delete_resourceDELETEdata__Identifier, region
get_resourceSELECTdata__Identifier, region

SELECT Example

SELECT
region,
cidr_block,
ipv6_pool,
id,
vpc_id,
ipv6_cidr_block,
ipv4_ipam_pool_id,
ipv4_netmask_length,
ipv6_ipam_pool_id,
ipv6_netmask_length,
amazon_provided_ipv6_cidr_block
FROM aws.ec2.vpc_cidr_block
WHERE data__Identifier = '<Id>|<VpcId>';

Permissions

To operate on the vpc_cidr_block resource, the following permissions are required:

Read

ec2:DescribeVpcs

Delete

ec2:DescribeVpcs,
ec2:DisassociateVpcCidrBlock