aws-cdk-lib.aws_route53.HostedZoneProps

interface HostedZoneProps

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

Properties of a new hosted zone.

Example

const hostedZone = new route53.HostedZone(this, 'MyHostedZone', { zoneName: "example.org" });
const metric = new cloudwatch.Metric({
  namespace: 'AWS/Route53',
  metricName: 'DNSQueries',
  dimensionsMap: {
    HostedZoneId: hostedZone.hostedZoneId
  }
});

Properties

NameTypeDescription
zoneNamestringThe name of the domain.
addTrailingDot?booleanWhether to add a trailing dot to the zone name.
comment?stringAny comments that you want to include about the hosted zone.
queryLogsLogGroupArn?stringThe Amazon Resource Name (ARN) for the log group that you want Amazon Route 53 to send query logs to.
vpcs?IVpc[]A VPC that you want to associate with this hosted zone.

zoneName

Type: string

The name of the domain.

For resource record types that include a domain name, specify a fully qualified domain name.


addTrailingDot?

Type: boolean (optional, default: true)

Whether to add a trailing dot to the zone name.


comment?

Type: string (optional, default: none)

Any comments that you want to include about the hosted zone.


queryLogsLogGroupArn?

Type: string (optional, default: disabled)

The Amazon Resource Name (ARN) for the log group that you want Amazon Route 53 to send query logs to.


vpcs?

Type: IVpc[] (optional, default: public (no VPCs associated))

A VPC that you want to associate with this hosted zone.

When you specify this property, a private hosted zone will be created.

You can associate additional VPCs to this private zone using addVpc(vpc).