interface HostedZoneProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Route53.HostedZoneProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsroute53#HostedZoneProps |
![]() | software.amazon.awscdk.services.route53.HostedZoneProps |
![]() | aws_cdk.aws_route53.HostedZoneProps |
![]() | 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
Name | Type | Description |
---|---|---|
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. |
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)
.