interface PrivateHostedZoneProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Route53.PrivateHostedZoneProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsroute53#PrivateHostedZoneProps |
![]() | software.amazon.awscdk.services.route53.PrivateHostedZoneProps |
![]() | aws_cdk.aws_route53.PrivateHostedZoneProps |
![]() | 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
Name | Type | Description |
---|---|---|
vpc | IVpc | A VPC that you want to associate with this hosted zone. |
zone | string | The name of the domain. |
add | boolean | Whether to add a trailing dot to the zone name. |
comment? | string | Any comments that you want to include about the hosted zone. |
query | string | The 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.