aws-cdk-lib.aws_route53.CfnRecordSetGroupProps

interface CfnRecordSetGroupProps

LanguageType name
.NETAmazon.CDK.AWS.Route53.CfnRecordSetGroupProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsroute53#CfnRecordSetGroupProps
Javasoftware.amazon.awscdk.services.route53.CfnRecordSetGroupProps
Pythonaws_cdk.aws_route53.CfnRecordSetGroupProps
TypeScript aws-cdk-lib » aws_route53 » CfnRecordSetGroupProps

Properties for defining a CfnRecordSetGroup.

Example

// 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',
    },
    healthCheckId: 'healthCheckId',
    hostedZoneId: 'hostedZoneId',
    hostedZoneName: 'hostedZoneName',
    multiValueAnswer: false,
    region: 'region',
    resourceRecords: ['resourceRecords'],
    setIdentifier: 'setIdentifier',
    ttl: 'ttl',
    weight: 123,
  }],
};

Properties

NameTypeDescription
comment?stringOptional: Any comments you want to include about a change batch request.
hostedZoneId?stringThe ID of the hosted zone that you want to create records in.
hostedZoneName?stringThe name of the hosted zone that you want to create records in.
recordSets?IResolvable | IResolvable | RecordSetProperty[]A complex type that contains one RecordSet element for each record that you want to create.

comment?

Type: string (optional)

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


hostedZoneId?

Type: string (optional)

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 .


hostedZoneName?

Type: string (optional)

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 .


recordSets?

Type: IResolvable | IResolvable | RecordSetProperty[] (optional)

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