# CommonHostedZoneProps

Common properties to create a Route 53 hosted zone.

- Source: [`aws-route53/lib/hosted-zone.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-route53/lib/hosted-zone.ts#L34)
- Type last changed: v2.82.0 · 2 Jun 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `addTrailingDot`: boolean = true — Whether to add a trailing dot to the zone name.

- `comment`: string = none — Any comments that you want to include about the hosted zone.

- `queryLogsLogGroupArn`: string = disabled — The Amazon Resource Name (ARN) for the log group that you want Amazon Route 53 to send query logs to.

- `zoneName`: string (required) — The name of the domain.

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