Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

AWS::Route53::CidrCollection

Focus mode
AWS::Route53::CidrCollection - AWS CloudFormation
Filter View

Creates a CIDR collection in the current AWS account.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::Route53::CidrCollection", "Properties" : { "Locations" : [ Location, ... ], "Name" : String } }

YAML

Type: AWS::Route53::CidrCollection Properties: Locations: - Location Name: String

Properties

Locations

A complex type that contains information about the list of CIDR locations.

Required: No

Type: Array of Location

Update requires: No interruption

Name

The name of a CIDR collection.

Required: Yes

Type: String

Pattern: ^[0-9A-Za-z_\-]+$

Minimum: 1

Maximum: 64

Update requires: Replacement

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the CidrCollection ID.

Fn::GetAtt

The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.

Arn

"The Amazon resource name (ARN) to uniquely identify the AWS resource.

Id

The UUID of the CIDR collection.

Examples

Create a CIDR collection

The following example creates CIDR collection with two locations that each contain two CIDR blocks.

JSON

{ "MyCidrCollection":{ "Type":"AWS::Route53::CidrCollection", "Properties":{ "Name":"my-first-cidr-collection", "Locations":[ { "LocationName":"location-1", "CidrList":[ "1.1.0.0/24", "2.1.0.0/16" ] }, { "LocationName":"location-2", "CidrList":[ "2002::1234:0:0:0:0:0/48", "1002::/32" ] } ] } } }

YAML

MyCidrCollection: Type: AWS::Route53::CidrCollection Properties: Name: "my-first-cidr-collection" Locations: - LocationName: "location-1" CidrList: - "1.1.0.0/24" - "2.1.0.0/16" - LocationName: "location-2" CidrList: - "2002::1234:0:0:0:0:0/48" - "1002::/32"

See also

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.