Experimental
@aws-cdk/aws-route53resolver-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
FirewallRuleGroupAssociationProps Struct
Properties for a Firewall Rule Group Association.
| Stability | Experimental |
|---|---|
| Source | lib/firewall-rule-group-association.ts |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as route53resolver_alpha from '@aws-cdk/aws-route53resolver-alpha';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
declare const firewallRuleGroup: route53resolver_alpha.FirewallRuleGroup;
declare const vpc: ec2.Vpc;
const firewallRuleGroupAssociationProps: route53resolver_alpha.FirewallRuleGroupAssociationProps = {
firewallRuleGroup: firewallRuleGroup,
priority: 123,
vpc: vpc,
// the properties below are optional
mutationProtection: false,
name: 'name',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_route53resolver_alpha as route53resolver_alpha
from aws_cdk import aws_ec2 as ec2
# firewall_rule_group: route53resolver_alpha.FirewallRuleGroup
# vpc: ec2.Vpc
firewall_rule_group_association_props = route53resolver_alpha.FirewallRuleGroupAssociationProps(
firewall_rule_group=firewall_rule_group,
priority=123,
vpc=vpc,
# the properties below are optional
mutation_protection=False,
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.alpha.*;
import software.amazon.awscdk.services.ec2.*;
FirewallRuleGroup firewallRuleGroup;
Vpc vpc;
FirewallRuleGroupAssociationProps firewallRuleGroupAssociationProps = FirewallRuleGroupAssociationProps.builder()
.firewallRuleGroup(firewallRuleGroup)
.priority(123)
.vpc(vpc)
// the properties below are optional
.mutationProtection(false)
.name("name")
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Route53Resolver.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Route53Resolver.Alpha;
using Amazon.CDK.AWS.EC2;
FirewallRuleGroup firewallRuleGroup;
Vpc vpc;
var firewallRuleGroupAssociationProps = new FirewallRuleGroupAssociationProps {
FirewallRuleGroup = firewallRuleGroup,
Priority = 123,
Vpc = vpc,
// the properties below are optional
MutationProtection = false,
Name = "name"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdkroute53resolveralpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import route53resolver_alpha "github.com/aws/aws-cdk-go/awscdkroute53resolveralpha"
import "github.com/aws/aws-cdk-go/awscdk"
var firewallRuleGroup FirewallRuleGroup
var vpc Vpc
firewallRuleGroupAssociationProps := &FirewallRuleGroupAssociationProps{
FirewallRuleGroup: firewallRuleGroup,
Priority: jsii.Number(123),
Vpc: vpc,
// the properties below are optional
MutationProtection: jsii.Boolean(false),
Name: jsii.String("name"),
}
Properties
firewallRuleGroupIFirewallRuleGroupfirewall_rule_groupIFirewallRuleGroupfirewallRuleGroupIFirewallRuleGroupFirewallRuleGroupIFirewallRuleGroupFirewallRuleGroupIFirewallRuleGroup required #The firewall rule group which must be associated.
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