AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Route53::RecordSetGroup

CfnRecordSetGroup

A complex type that contains an optional comment, the name and ID of the hosted zone that you want to make changes in, and values for the records that you want to create.

Import

import { CfnRecordSetGroup } from 'aws-cdk-lib/aws-route53';

Or use the module namespace:

import * as route53 from 'aws-cdk-lib/aws-route53';
// route53.CfnRecordSetGroup

Properties

Configuration passed to the constructor as CfnRecordSetGroupProps.

commentOptional
string

*Optional:* Any comments you want to include about a change batch request.

hostedZoneIdOptional
string

The ID of the hosted zone that you want to create records in. Specify either `HostedZoneName` or `HostedZoneId` , but not both. If you have multiple hosted zones with the same domain name, you must specify the hosted zone using `HostedZoneId` .

hostedZoneNameOptional
string

The name of the hosted zone that you want to create records in. You must include a trailing dot (for example, `www.example.com.` ) as part of the `HostedZoneName` . When you create a stack using an `AWS::Route53::RecordSet` that specifies `HostedZoneName` , AWS CloudFormation attempts to find a hosted zone whose name matches the `HostedZoneName` . If AWS CloudFormation can't find a hosted zone with a matching domain name, or if there is more than one hosted zone with the specified domain name, AWS CloudFormation will not create the stack. Specify either `HostedZoneName` or `HostedZoneId` , but not both. If you have multiple hosted zones with the same domain name, you must specify the hosted zone using `HostedZoneId` .

recordSetsOptional
IResolvable | IResolvable | RecordSetProperty[]

A complex type that contains one `RecordSet` element for each record that you want to create.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon Route 53 Cheat Sheet

Everything you need to know about Amazon Route 53 on one page. HD quality, print-friendly.

Download Free Infographic