CfnResolverRuleAssociationProps Struct
Properties for defining a CfnResolverRuleAssociation.
| Source | |
|---|---|
| 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_route53resolver as route53resolver } from 'aws-cdk-lib';
const cfnResolverRuleAssociationProps: route53resolver.CfnResolverRuleAssociationProps = {
resolverRuleId: 'resolverRuleId',
vpcId: 'vpcId',
// the properties below are optional
name: 'name',
};
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
// 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();
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"
};
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
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.
resolverRuleIdstring | IResolverRuleRefresolver_rule_idtyping.Union[str, IResolverRuleRef]resolverRuleIdStringResolverRuleIdstringResolverRuleIdinterface{} required #The ID of the Resolver rule that you associated with the VPC that is specified by `VPCId` .