Experimental
@aws-cdk/aws-route53resolver-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
FirewallRuleGroupAssociationOptions Struct
Options for a Firewall Rule Group Association.
| Stability | Experimental |
|---|---|
| Source | lib/firewall-rule-group-association.ts |
Example
ts
import * as ec2 from 'aws-cdk-lib/aws-ec2';
declare const ruleGroup: route53resolver.FirewallRuleGroup;
declare const myVpc: ec2.Vpc;
ruleGroup.associate('Association', {
priority: 101,
vpc: myVpc,
})
python
import aws_cdk.aws_ec2 as ec2
# rule_group: route53resolver.FirewallRuleGroup
# my_vpc: ec2.Vpc
rule_group.associate("Association",
priority=101,
vpc=my_vpc
)
java
import software.amazon.awscdk.services.ec2.*;
FirewallRuleGroup ruleGroup;
Vpc myVpc;
ruleGroup.associate("Association", FirewallRuleGroupAssociationOptions.builder()
.priority(101)
.vpc(myVpc)
.build());
csharp
// Install: dotnet add package Amazon.CDK.AWS.Route53Resolver.Alpha
using Amazon.CDK.AWS.EC2;
FirewallRuleGroup ruleGroup;
Vpc myVpc;
ruleGroup.Associate("Association", new FirewallRuleGroupAssociationOptions {
Priority = 101,
Vpc = myVpc
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdkroute53resolveralpha/v2
import ec2 "github.com/aws/aws-cdk-go/awscdk"
var ruleGroup FirewallRuleGroup
var myVpc Vpc
ruleGroup.Associate(jsii.String("Association"), &FirewallRuleGroupAssociationOptions{
Priority: jsii.Number(101),
Vpc: myVpc,
})
Properties
mutationProtectionoptionalbooleanmutation_protectionoptionalboolmutationProtectionoptionalBooleanMutationProtectionoptionalboolMutationProtectionoptional*bool #If enabled, this setting disallows modification or removal of the association, to help prevent against accidentally altering DNS firewall protections.
Default: mutation protection is disabled; the association can be modified or removed
Note that mutation protection also blocks CloudFormation from updating or deleting the association, so leave it disabled for associations whose lifecycle is managed by this stack.
The name of the association.
Default: a CloudFormation generated name
The setting that determines the processing order of the rule group among the rule groups that are associated with a single VPC.
DNS Firewall filters VPC traffic starting from rule group with the lowest numeric priority setting.
This value must be greater than 100 and less than 9,000