# CfnRecordSetGroupProps

Properties for defining a `CfnRecordSetGroup`.

Used as props by: [CfnRecordSetGroup](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53.CfnRecordSetGroup.html)

- Source: Generated at build time

## Example

TypeScript:

```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,
  }],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_route53 as route53

cfn_record_set_group_props = route53.CfnRecordSetGroupProps(
    comment="comment",
    hosted_zone_id="hostedZoneId",
    hosted_zone_name="hostedZoneName",
    record_sets=[route53.CfnRecordSetGroup.RecordSetProperty(
        name="name",
        type="type",

        # the properties below are optional
        alias_target=route53.CfnRecordSetGroup.AliasTargetProperty(
            dns_name="dnsName",
            hosted_zone_id="hostedZoneId",

            # the properties below are optional
            evaluate_target_health=False
        ),
        cidr_routing_config=route53.CfnRecordSetGroup.CidrRoutingConfigProperty(
            collection_id="collectionId",
            location_name="locationName"
        ),
        failover="failover",
        geo_location=route53.CfnRecordSetGroup.GeoLocationProperty(
            continent_code="continentCode",
            country_code="countryCode",
            subdivision_code="subdivisionCode"
        ),
        geo_proximity_location=route53.CfnRecordSetGroup.GeoProximityLocationProperty(
            aws_region="awsRegion",
            bias=123,
            coordinates=route53.CfnRecordSetGroup.CoordinatesProperty(
                latitude="latitude",
                longitude="longitude"
            ),
            local_zone_group="localZoneGroup"
        ),
        health_check_id="healthCheckId",
        hosted_zone_id="hostedZoneId",
        hosted_zone_name="hostedZoneName",
        multi_value_answer=False,
        region="region",
        resource_records=["resourceRecords"],
        set_identifier="setIdentifier",
        ttl="ttl",
        weight=123
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.route53.*;

CfnRecordSetGroupProps cfnRecordSetGroupProps = CfnRecordSetGroupProps.builder()
        .comment("comment")
        .hostedZoneId("hostedZoneId")
        .hostedZoneName("hostedZoneName")
        .recordSets(List.of(RecordSetProperty.builder()
                .name("name")
                .type("type")

                // the properties below are optional
                .aliasTarget(AliasTargetProperty.builder()
                        .dnsName("dnsName")
                        .hostedZoneId("hostedZoneId")

                        // the properties below are optional
                        .evaluateTargetHealth(false)
                        .build())
                .cidrRoutingConfig(CidrRoutingConfigProperty.builder()
                        .collectionId("collectionId")
                        .locationName("locationName")
                        .build())
                .failover("failover")
                .geoLocation(GeoLocationProperty.builder()
                        .continentCode("continentCode")
                        .countryCode("countryCode")
                        .subdivisionCode("subdivisionCode")
                        .build())
                .geoProximityLocation(GeoProximityLocationProperty.builder()
                        .awsRegion("awsRegion")
                        .bias(123)
                        .coordinates(CoordinatesProperty.builder()
                                .latitude("latitude")
                                .longitude("longitude")
                                .build())
                        .localZoneGroup("localZoneGroup")
                        .build())
                .healthCheckId("healthCheckId")
                .hostedZoneId("hostedZoneId")
                .hostedZoneName("hostedZoneName")
                .multiValueAnswer(false)
                .region("region")
                .resourceRecords(List.of("resourceRecords"))
                .setIdentifier("setIdentifier")
                .ttl("ttl")
                .weight(123)
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Route53;

var cfnRecordSetGroupProps = new CfnRecordSetGroupProps {
    Comment = "comment",
    HostedZoneId = "hostedZoneId",
    HostedZoneName = "hostedZoneName",
    RecordSets = new [] { new RecordSetProperty {
        Name = "name",
        Type = "type",

        // the properties below are optional
        AliasTarget = new AliasTargetProperty {
            DnsName = "dnsName",
            HostedZoneId = "hostedZoneId",

            // the properties below are optional
            EvaluateTargetHealth = false
        },
        CidrRoutingConfig = new CidrRoutingConfigProperty {
            CollectionId = "collectionId",
            LocationName = "locationName"
        },
        Failover = "failover",
        GeoLocation = new GeoLocationProperty {
            ContinentCode = "continentCode",
            CountryCode = "countryCode",
            SubdivisionCode = "subdivisionCode"
        },
        GeoProximityLocation = new GeoProximityLocationProperty {
            AwsRegion = "awsRegion",
            Bias = 123,
            Coordinates = new CoordinatesProperty {
                Latitude = "latitude",
                Longitude = "longitude"
            },
            LocalZoneGroup = "localZoneGroup"
        },
        HealthCheckId = "healthCheckId",
        HostedZoneId = "hostedZoneId",
        HostedZoneName = "hostedZoneName",
        MultiValueAnswer = false,
        Region = "region",
        ResourceRecords = new [] { "resourceRecords" },
        SetIdentifier = "setIdentifier",
        Ttl = "ttl",
        Weight = 123
    } }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnRecordSetGroupProps := &CfnRecordSetGroupProps{
	Comment: jsii.String("comment"),
	HostedZoneId: jsii.String("hostedZoneId"),
	HostedZoneName: jsii.String("hostedZoneName"),
	RecordSets: []interface{}{
		&RecordSetProperty{
			Name: jsii.String("name"),
			Type: jsii.String("type"),

			// the properties below are optional
			AliasTarget: &AliasTargetProperty{
				DnsName: jsii.String("dnsName"),
				HostedZoneId: jsii.String("hostedZoneId"),

				// the properties below are optional
				EvaluateTargetHealth: jsii.Boolean(false),
			},
			CidrRoutingConfig: &CidrRoutingConfigProperty{
				CollectionId: jsii.String("collectionId"),
				LocationName: jsii.String("locationName"),
			},
			Failover: jsii.String("failover"),
			GeoLocation: &GeoLocationProperty{
				ContinentCode: jsii.String("continentCode"),
				CountryCode: jsii.String("countryCode"),
				SubdivisionCode: jsii.String("subdivisionCode"),
			},
			GeoProximityLocation: &GeoProximityLocationProperty{
				AwsRegion: jsii.String("awsRegion"),
				Bias: jsii.Number(123),
				Coordinates: &CoordinatesProperty{
					Latitude: jsii.String("latitude"),
					Longitude: jsii.String("longitude"),
				},
				LocalZoneGroup: jsii.String("localZoneGroup"),
			},
			HealthCheckId: jsii.String("healthCheckId"),
			HostedZoneId: jsii.String("hostedZoneId"),
			HostedZoneName: jsii.String("hostedZoneName"),
			MultiValueAnswer: jsii.Boolean(false),
			Region: jsii.String("region"),
			ResourceRecords: []*string{
				jsii.String("resourceRecords"),
			},
			SetIdentifier: jsii.String("setIdentifier"),
			Ttl: jsii.String("ttl"),
			Weight: jsii.Number(123),
		},
	},
}
```

## Properties

- `comment`: string — *Optional:* Any comments you want to include about a change batch request.

- `hostedZoneId`: 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` .

- `hostedZoneName`: 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` .

- `recordSets`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnRecordSetGroup.RecordSetProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53.CfnRecordSetGroup.RecordSetProperty.html)[] — A complex type that contains one `RecordSet` element for each record that you want to create.
