vpc_cidr_block
Gets an individual vpc_cidr_block
resource
Overview
Name | vpc_cidr_block |
Type | Resource |
Description | Resource Type definition for AWS::EC2::VPCCidrBlock |
Id | aws.ec2.vpc_cidr_block |
Fields
Name | Datatype | Description |
---|---|---|
cidr_block | string | An IPv4 CIDR block to associate with the VPC. |
ipv6_pool | string | The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block. |
id | string | The Id of the VPC associated CIDR Block. |
vpc_id | string | The ID of the VPC. |
ipv6_cidr_block | string | An IPv6 CIDR block from the IPv6 address pool. |
ipv4_ipam_pool_id | string | The ID of the IPv4 IPAM pool to Associate a CIDR from to a VPC. |
ipv4_netmask_length | integer | The netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool. |
ipv6_ipam_pool_id | string | The ID of the IPv6 IPAM pool to Associate a CIDR from to a VPC. |
ipv6_netmask_length | integer | The netmask length of the IPv6 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool. |
amazon_provided_ipv6_cidr_block | boolean | Requests 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. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
delete_resource | DELETE | data__Identifier, region |
get_resource | SELECT | data__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