# CfnQueryLoggingConfigProps

Properties for defining a `CfnQueryLoggingConfig`.

Used as props by: [CfnQueryLoggingConfig](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53.CfnQueryLoggingConfig.html)

- Source: Generated at build time
- Type last changed: v2.272.0 · 30 Sep 2026

## 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 cfnQueryLoggingConfigProps: route53.CfnQueryLoggingConfigProps = {
  cloudWatchLogsLogGroupArn: 'cloudWatchLogsLogGroupArn',
  hostedZoneId: 'hostedZoneId',
};
```

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

cfn_query_logging_config_props = route53.CfnQueryLoggingConfigProps(
    cloud_watch_logs_log_group_arn="cloudWatchLogsLogGroupArn",
    hosted_zone_id="hostedZoneId"
)
```

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.*;

CfnQueryLoggingConfigProps cfnQueryLoggingConfigProps = CfnQueryLoggingConfigProps.builder()
        .cloudWatchLogsLogGroupArn("cloudWatchLogsLogGroupArn")
        .hostedZoneId("hostedZoneId")
        .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 cfnQueryLoggingConfigProps = new CfnQueryLoggingConfigProps {
    CloudWatchLogsLogGroupArn = "cloudWatchLogsLogGroupArn",
    HostedZoneId = "hostedZoneId"
};
```

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"

cfnQueryLoggingConfigProps := &CfnQueryLoggingConfigProps{
	CloudWatchLogsLogGroupArn: jsii.String("cloudWatchLogsLogGroupArn"),
	HostedZoneId: jsii.String("hostedZoneId"),
}
```

## Properties

- `cloudWatchLogsLogGroupArn`: string (required) — The Amazon Resource Name (ARN) of the CloudWatch Logs log group in us-east-1 that Amazon Route 53 publishes query logs to.

- `hostedZoneId`: string (required) — The ID of the public hosted zone that Amazon Route 53 logs queries for.
