AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

PrivateHostedZone

Create a Route53 private hosted zone for use in one or more VPCs. Note that `enableDnsHostnames` and `enableDnsSupport` must have been enabled for the VPC you're configuring for private hosted zones.

Import

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

Or use the module namespace:

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

Properties

Configuration passed to the constructor as PrivateHostedZoneProps.

vpcRequired
IVpc

A VPC that you want to associate with this hosted zone. Private hosted zones must be associated with at least one VPC. You can associated additional VPCs using `addVpc(vpc)`.

4 properties inherited from CommonHostedZoneProps
zoneNameRequiredinherited from CommonHostedZoneProps
string

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

addTrailingDotOptionalinherited from CommonHostedZoneProps
boolean

Whether to add a trailing dot to the zone name.

Default: true

commentOptionalinherited from CommonHostedZoneProps
string

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

Default: none

queryLogsLogGroupArnOptionalinherited from CommonHostedZoneProps
string

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

Default: disabled

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