# CfnResolverRuleAssociationProps

Properties for defining a `CfnResolverRuleAssociation`.

Used as props by: [CfnResolverRuleAssociation](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53resolver.CfnResolverRuleAssociation.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 cfnResolverRuleAssociationProps: route53resolver.CfnResolverRuleAssociationProps = {
  resolverRuleId: 'resolverRuleId',
  vpcId: 'vpcId',

  // the properties below are optional
  name: 'name',
};
```

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_rule_association_props = route53resolver.CfnResolverRuleAssociationProps(
    resolver_rule_id="resolverRuleId",
    vpc_id="vpcId",

    # the properties below are optional
    name="name"
)
```

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

CfnResolverRuleAssociationProps cfnResolverRuleAssociationProps = CfnResolverRuleAssociationProps.builder()
        .resolverRuleId("resolverRuleId")
        .vpcId("vpcId")

        // the properties below are optional
        .name("name")
        .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 cfnResolverRuleAssociationProps = new CfnResolverRuleAssociationProps {
    ResolverRuleId = "resolverRuleId",
    VpcId = "vpcId",

    // the properties below are optional
    Name = "name"
};
```

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"

cfnResolverRuleAssociationProps := &CfnResolverRuleAssociationProps{
	ResolverRuleId: jsii.String("resolverRuleId"),
	VpcId: jsii.String("vpcId"),

	// the properties below are optional
	Name: jsii.String("name"),
}
```

## Properties

- `name`: string — The name of an association between a Resolver rule and a VPC.

  The name can be up to 64 characters long and can contain letters (a-z, A-Z), numbers (0-9), hyphens (-), underscores (_), and spaces. The name cannot consist of only numbers.

- `resolverRuleId`: string | [IResolverRuleRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_route53resolver.IResolverRuleRef.html) (required) — The ID of the Resolver rule that you associated with the VPC that is specified by `VPCId` .

- `vpcId`: string | [IVPCRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_ec2.IVPCRef.html) (required) — The ID of the VPC that you associated the Resolver rule with.
