aws-cdk-lib.aws_route53.PrivateHostedZoneProps

interface PrivateHostedZoneProps

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

Properties to create a Route 53 private hosted zone.

Example

declare const vpc: ec2.Vpc;

const zone = new route53.PrivateHostedZone(this, 'HostedZone', {
  zoneName: 'fully.qualified.domain.com',
  vpc,    // At least one VPC has to be added to a Private Hosted Zone.
});

Properties

NameTypeDescription
vpcIVpcA VPC that you want to associate with this hosted zone.
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.

vpc

Type: 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).


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.