AWS::Route53::CidrCollection
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
} }
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
-
CreateCidrCollection in the Amazon Route 53 API Reference