CommonHostedZoneProps Struct
Common properties to create a Route 53 hosted zone.
| Source | aws-route53/lib/hosted-zone.ts |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_route53 as route53 } from 'aws-cdk-lib';
const commonHostedZoneProps: route53.CommonHostedZoneProps = {
zoneName: 'zoneName',
// the properties below are optional
addTrailingDot: false,
comment: 'comment',
queryLogsLogGroupArn: 'queryLogsLogGroupArn',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_route53 as route53
common_hosted_zone_props = route53.CommonHostedZoneProps(
zone_name="zoneName",
# the properties below are optional
add_trailing_dot=False,
comment="comment",
query_logs_log_group_arn="queryLogsLogGroupArn"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.route53.*;
CommonHostedZoneProps commonHostedZoneProps = CommonHostedZoneProps.builder()
.zoneName("zoneName")
// the properties below are optional
.addTrailingDot(false)
.comment("comment")
.queryLogsLogGroupArn("queryLogsLogGroupArn")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Route53;
var commonHostedZoneProps = new CommonHostedZoneProps {
ZoneName = "zoneName",
// the properties below are optional
AddTrailingDot = false,
Comment = "comment",
QueryLogsLogGroupArn = "queryLogsLogGroupArn"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
commonHostedZoneProps := &CommonHostedZoneProps{
ZoneName: jsii.String("zoneName"),
// the properties below are optional
AddTrailingDot: jsii.Boolean(false),
Comment: jsii.String("comment"),
QueryLogsLogGroupArn: jsii.String("queryLogsLogGroupArn"),
}
Properties
addTrailingDotoptionalbooleanadd_trailing_dotoptionalbooladdTrailingDotoptionalBooleanAddTrailingDotoptionalboolAddTrailingDotoptional*bool = true #Whether to add a trailing dot to the zone name.
commentoptionalstringcommentoptionalstrcommentoptionalStringCommentoptionalstringCommentoptional*string = none #Any comments that you want to include about the hosted zone.
queryLogsLogGroupArnoptionalstringquery_logs_log_group_arnoptionalstrqueryLogsLogGroupArnoptionalStringQueryLogsLogGroupArnoptionalstringQueryLogsLogGroupArnoptional*string = disabled #The Amazon Resource Name (ARN) for the log group that you want Amazon Route 53 to send query logs to.
The name of the domain.
For resource record types that include a domain name, specify a fully qualified domain name.