Skip to main content

cidr_collections

Creates, updates, deletes or gets a cidr_collection resource or lists cidr_collections in a region

Overview

Namecidr_collections
TypeResource
DescriptionResource schema for AWS::Route53::CidrCollection.
Idaws.route53.cidr_collections

Fields

NameDatatypeDescription
idstringUUID of the CIDR collection.
namestringA unique name for the CIDR collection.
arnstringThe Amazon resource name (ARN) to uniquely identify the AWS resource.
locationsarrayA complex type that contains information about the list of CIDR locations.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all cidr_collections in a region.

SELECT
region,
id,
name,
arn,
locations
FROM aws.route53.cidr_collections
;

Gets all properties from an individual cidr_collection.

SELECT
region,
id,
name,
arn,
locations
FROM aws.route53.cidr_collections
WHERE data__Identifier = '<Id>';

INSERT example

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

/*+ create */
INSERT INTO aws.route53.cidr_collections (
Name,
region
)
SELECT
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.route53.cidr_collections
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

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

Create

route53:CreateCidrCollection,
route53:ChangeCidrCollection

Read

route53:ListCidrCollections,
route53:ListCidrBlocks

Update

route53:ChangeCidrCollection

Delete

route53:DeleteCidrCollection,
route53:ChangeCidrCollection

List

route53:ListCidrCollections,
route53:ListCidrBlocks