# CfnResolverQueryLoggingConfigAssociationProps

Properties for defining a `CfnResolverQueryLoggingConfigAssociation`.

Used as props by: [CfnResolverQueryLoggingConfigAssociation](/cdk/api/v2/docs/aws-cdk-lib.aws_route53resolver.CfnResolverQueryLoggingConfigAssociation.html)

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_route53resolver as route53resolver } from 'aws-cdk-lib';
const cfnResolverQueryLoggingConfigAssociationProps: route53resolver.CfnResolverQueryLoggingConfigAssociationProps = {
  resolverQueryLogConfigId: 'resolverQueryLogConfigId',
  resourceId: 'resourceId',
};
```

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_route53resolver as route53resolver

cfn_resolver_query_logging_config_association_props = route53resolver.CfnResolverQueryLoggingConfigAssociationProps(
    resolver_query_log_config_id="resolverQueryLogConfigId",
    resource_id="resourceId"
)
```

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

CfnResolverQueryLoggingConfigAssociationProps cfnResolverQueryLoggingConfigAssociationProps = CfnResolverQueryLoggingConfigAssociationProps.builder()
        .resolverQueryLogConfigId("resolverQueryLogConfigId")
        .resourceId("resourceId")
        .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.Route53Resolver;

var cfnResolverQueryLoggingConfigAssociationProps = new CfnResolverQueryLoggingConfigAssociationProps {
    ResolverQueryLogConfigId = "resolverQueryLogConfigId",
    ResourceId = "resourceId"
};
```

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"

cfnResolverQueryLoggingConfigAssociationProps := &CfnResolverQueryLoggingConfigAssociationProps{
	ResolverQueryLogConfigId: jsii.String("resolverQueryLogConfigId"),
	ResourceId: jsii.String("resourceId"),
}
```

## Properties

- `resolverQueryLogConfigId`: string | [IResolverQueryLoggingConfigRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_route53resolver.IResolverQueryLoggingConfigRef.html) — The ID of the query logging configuration that a VPC is associated with.

- `resourceId`: string | [IVPCRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_ec2.IVPCRef.html) — The ID of the Amazon VPC that is associated with the query logging configuration.
