Skip to main content

ipam_pool_cidrs

Creates, updates, deletes or gets an ipam_pool_cidr resource or lists ipam_pool_cidrs in a region

Overview

Nameipam_pool_cidrs
TypeResource
DescriptionResource Schema of AWS::EC2::IPAMPoolCidr Type
Idawscc.ec2.ipam_pool_cidrs

Fields

NameDatatypeDescription
ipam_pool_cidr_idstringId of the IPAM Pool Cidr.
ipam_pool_idstringId of the IPAM Pool.
cidrstringRepresents a single IPv4 or IPv6 CIDR
netmask_lengthintegerThe desired netmask length of the provision. If set, IPAM will choose a block of free space with this size and return the CIDR representing it.
statestringProvisioned state of the cidr.
regionstringAWS region.

For more information, see AWS::EC2::IPAMPoolCidr.

Methods

NameResourceAccessible byRequired Params
create_resourceipam_pool_cidrsINSERTIpamPoolId, region
delete_resourceipam_pool_cidrsDELETEIdentifier, region
list_resourcesipam_pool_cidrs_list_onlySELECTregion
get_resourceipam_pool_cidrsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual ipam_pool_cidr.

SELECT
region,
ipam_pool_cidr_id,
ipam_pool_id,
cidr,
netmask_length,
state
FROM awscc.ec2.ipam_pool_cidrs
WHERE
region = 'us-east-1' AND
Identifier = '{{ ipam_pool_id }}|{{ ipam_pool_cidr_id }}';

INSERT example

Use the following StackQL query and manifest file to create a new ipam_pool_cidr resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.ec2.ipam_pool_cidrs (
IpamPoolId,
region
)
SELECT
'{{ ipam_pool_id }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.ec2.ipam_pool_cidrs
WHERE
Identifier = '{{ ipam_pool_id }}|{{ ipam_pool_cidr_id }}' AND
region = 'us-east-1';

Permissions

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

ec2:ProvisionIpamPoolCidr,
ec2:GetIpamPoolCidrs