Skip to main content

cidr_collections

Creates, updates, deletes, gets or lists a cidr_collections resource.

Overview

Namecidr_collections
TypeResource
Idaws.route53.cidr_collections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe ARN of the collection summary. Can be used to reference the collection in IAM policy or cross-account.
idstringUnique ID for the CIDR collection.
namestringThe name of a CIDR collection.
versionintegerA sequential counter that Route 53 sets to 1 when you create a CIDR collection and increments by 1 each time you update settings for the CIDR collection.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_cidr_collectionsselectregionnexttoken, maxresultsReturns a paginated list of CIDR collections in the Amazon Web Services account (metadata only).
create_cidr_collectioninsertregion, CallerReferenceCreates a CIDR collection in the current Amazon Web Services account.
delete_cidr_collectiondeletecidr_collection_id, regionDeletes a CIDR collection in the current Amazon Web Services account. The collection must be empty before it can be deleted.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
cidr_collection_idstringThe UUID of the collection to delete.
regionstringAWS region (default: us-east-1)
maxresultsstringThe maximum number of CIDR collections to return in the response.
nexttokenstringAn opaque pagination token to indicate where the service is to begin enumerating results. If no value is provided, the listing of results starts from the beginning.

SELECT examples

Returns a paginated list of CIDR collections in the Amazon Web Services account (metadata only).

SELECT
arn,
id,
name,
version
FROM aws.route53.cidr_collections
WHERE region = '{{ region }}' -- required
AND nexttoken = '{{ nexttoken }}'
AND maxresults = '{{ maxresults }}'
;

INSERT examples

Creates a CIDR collection in the current Amazon Web Services account.

INSERT INTO aws.route53.cidr_collections (
Name,
CallerReference,
region
)
SELECT
'{{ Name }}',
'{{ CallerReference }}' /* required */,
'{{ region }}'
RETURNING
collection,
location
;

DELETE examples

Deletes a CIDR collection in the current Amazon Web Services account. The collection must be empty before it can be deleted.

DELETE FROM aws.route53.cidr_collections
WHERE cidr_collection_id = '{{ cidr_collection_id }}' --required
AND region = '{{ region }}' --required
;