FirewallRuleGroupProps

class aws_cdk.aws_route53resolver.FirewallRuleGroupProps(*, name=None, rules=None)

Bases: object

(experimental) Properties for a Firewall Rule Group.

Parameters
  • name (Optional[str]) – (experimental) The name of the rule group. Default: - a CloudFormation generated name

  • rules (Optional[Sequence[FirewallRule]]) – (experimental) A list of rules for this group. Default: - no rules

Stability

experimental

ExampleMetadata

infused

Example:

# my_block_list: route53resolver.FirewallDomainList

route53resolver.FirewallRuleGroup(self, "RuleGroup",
    rules=[route53resolver.FirewallRule(
        priority=10,
        firewall_domain_list=my_block_list,
        # block and reply with NODATA
        action=route53resolver.FirewallRuleAction.block()
    )
    ]
)

Attributes

name

(experimental) The name of the rule group.

Default
  • a CloudFormation generated name

Stability

experimental

Return type

Optional[str]

rules

(experimental) A list of rules for this group.

Default
  • no rules

Stability

experimental

Return type

Optional[List[FirewallRule]]