@aws-cdk_aws-route53resolver-alpha.FirewallRule

interface FirewallRule ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Route53Resolver.Alpha.FirewallRule
Gogithub.com/aws/aws-cdk-go/awscdkroute53resolveralpha/v2#FirewallRule
Javasoftware.amazon.awscdk.services.route53resolver.alpha.FirewallRule
Pythonaws_cdk.aws_route53resolver_alpha.FirewallRule
TypeScript (source)@aws-cdk/aws-route53resolver-alpha ยป FirewallRule

A Firewall Rule.

Example

declare const myBlockList: route53resolver.FirewallDomainList;
declare const ruleGroup: route53resolver.FirewallRuleGroup;

ruleGroup.addRule({
  priority: 10,
  firewallDomainList: myBlockList,
  // block and reply with NXDOMAIN
  action: route53resolver.FirewallRuleAction.block(route53resolver.DnsBlockResponse.nxDomain()),
});

ruleGroup.addRule({
  priority: 20,
  firewallDomainList: myBlockList,
  // block and override DNS response with a custom domain
  action: route53resolver.FirewallRuleAction.block(route53resolver.DnsBlockResponse.override('amazon.com')),
});

Properties

NameTypeDescription
action๐Ÿ”นFirewallRuleActionThe action for this rule.
firewallDomainList๐Ÿ”นIFirewallDomainListThe domain list for this rule.
priority๐Ÿ”นnumberThe priority of the rule in the rule group.

action๐Ÿ”น

Type: FirewallRuleAction

The action for this rule.


firewallDomainList๐Ÿ”น

Type: IFirewallDomainList

The domain list for this rule.


priority๐Ÿ”น

Type: number

The priority of the rule in the rule group.

This value must be unique within the rule group.