Skip to content
v2.275.0

CfnRecordSetGroupProps Struct ​

Properties for defining a CfnRecordSetGroup.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_route53 as route53 } from 'aws-cdk-lib';
const cfnRecordSetGroupProps: route53.CfnRecordSetGroupProps = {
  comment: 'comment',
  hostedZoneId: 'hostedZoneId',
  hostedZoneName: 'hostedZoneName',
  recordSets: [{
    name: 'name',
    type: 'type',

    // the properties below are optional
    aliasTarget: {
      dnsName: 'dnsName',
      hostedZoneId: 'hostedZoneId',

      // the properties below are optional
      evaluateTargetHealth: false,
    },
    cidrRoutingConfig: {
      collectionId: 'collectionId',
      locationName: 'locationName',
    },
    failover: 'failover',
    geoLocation: {
      continentCode: 'continentCode',
      countryCode: 'countryCode',
      subdivisionCode: 'subdivisionCode',
    },
    geoProximityLocation: {
      awsRegion: 'awsRegion',
      bias: 123,
      coordinates: {
        latitude: 'latitude',
        longitude: 'longitude',
      },
      localZoneGroup: 'localZoneGroup',
    },
    healthCheckId: 'healthCheckId',
    hostedZoneId: 'hostedZoneId',
    hostedZoneName: 'hostedZoneName',
    multiValueAnswer: false,
    region: 'region',
    resourceRecords: ['resourceRecords'],
    setIdentifier: 'setIdentifier',
    ttl: 'ttl',
    weight: 123,
  }],
};

Properties ​

commentoptionalstringcommentoptionalstrcommentoptionalStringCommentoptionalstringCommentoptional*string#
*Optional:* Any comments you want to include about a change batch request.
hostedZoneIdoptionalstringhosted_zone_idoptionalstrhostedZoneIdoptionalStringHostedZoneIdoptionalstringHostedZoneIdoptional*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 .

hostedZoneNameoptionalstringhosted_zone_nameoptionalstrhostedZoneNameoptionalStringHostedZoneNameoptionalstringHostedZoneNameoptional*string#
The name of the hosted zone that you want to create records in.
notes

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 .

recordSetsoptionalIResolvable | IResolvable | CfnRecordSetGroup.RecordSetProperty[]record_setsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RecordSetProperty]]]recordSetsoptionalIResolvableRecordSetsoptionalIResolvableRecordSetsoptionalinterface{}#
A complex type that contains one `RecordSet` element for each record that you want to create.