Skip to content
v2.278.0

CfnFirewallRuleGroupAssociationProps ​

Struct External

Properties for defining a CfnFirewallRuleGroupAssociation.

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 cfnFirewallRuleGroupAssociationProps: route53resolver.CfnFirewallRuleGroupAssociationProps = {
  firewallRuleGroupId: 'firewallRuleGroupId',
  priority: 123,
  vpcId: 'vpcId',

  // the properties below are optional
  mutationProtection: 'mutationProtection',
  name: 'name',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# 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_firewall_rule_group_association_props = route53resolver.CfnFirewallRuleGroupAssociationProps(
    firewall_rule_group_id="firewallRuleGroupId",
    priority=123,
    vpc_id="vpcId",

    # the properties below are optional
    mutation_protection="mutationProtection",
    name="name",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
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.*;

CfnFirewallRuleGroupAssociationProps cfnFirewallRuleGroupAssociationProps = CfnFirewallRuleGroupAssociationProps.builder()
        .firewallRuleGroupId("firewallRuleGroupId")
        .priority(123)
        .vpcId("vpcId")

        // the properties below are optional
        .mutationProtection("mutationProtection")
        .name("name")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .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 cfnFirewallRuleGroupAssociationProps = new CfnFirewallRuleGroupAssociationProps {
    FirewallRuleGroupId = "firewallRuleGroupId",
    Priority = 123,
    VpcId = "vpcId",

    // the properties below are optional
    MutationProtection = "mutationProtection",
    Name = "name",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
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"

cfnFirewallRuleGroupAssociationProps := &CfnFirewallRuleGroupAssociationProps{
	FirewallRuleGroupId: jsii.String("firewallRuleGroupId"),
	Priority: jsii.Number(123),
	VpcId: jsii.String("vpcId"),

	// the properties below are optional
	MutationProtection: jsii.String("mutationProtection"),
	Name: jsii.String("name"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

firewallRuleGroupIdstring | IFirewallRuleGroupReffirewall_rule_group_idtyping.Union[str, IFirewallRuleGroupRef]firewallRuleGroupIdStringFirewallRuleGroupIdstringFirewallRuleGroupIdinterface{} required #
The unique identifier of the firewall rule group.
mutationProtectionoptionalstringmutation_protectionoptionalstrmutationProtectionoptionalStringMutationProtectionoptionalstringMutationProtectionoptional*string #
If enabled, this setting disallows modification or removal of the association, to help prevent against accidentally altering DNS firewall protections.
nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string #
The name of the association.
prioritynumberpriorityint | floatpriorityNumberPrioritydoublePriority*float64 required #
The setting that determines the processing order of the rule group among the rule groups that are associated with a single VPC.
notes

DNS Firewall filters VPC traffic starting from rule group with the lowest numeric priority setting.

You must specify a unique priority for each rule group that you associate with a single VPC. To make it easier to insert rule groups later, leave space between the numbers, for example, use 101, 200, and so on. You can change the priority setting for a rule group association after you create it.

The allowed values for Priority are between 100 and 9900 (excluding 100 and 9900).

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
A list of the tag keys and values that you want to associate with the rule group.
vpcIdstring | IVPCRefvpc_idtyping.Union[str, IVPCRef]vpcIdStringVpcIdstringVpcIdinterface{} required #
The unique identifier of the VPC that is associated with the rule group.