Interface IFirewallRule
(experimental) A Firewall Rule.
Namespace: Amazon.CDK.AWS.Route53Resolver.Alpha
Assembly: Amazon.CDK.AWS.Route53Resolver.Alpha.dll
Syntax (csharp)
public interface IFirewallRule
Syntax (vb)
Public Interface IFirewallRule
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
FirewallDomainList myBlockList;
FirewallRuleGroup ruleGroup;
ruleGroup.AddRule(new FirewallRule {
Priority = 10,
FirewallDomainList = myBlockList,
// block and reply with NXDOMAIN
Action = FirewallRuleAction.Block(DnsBlockResponse.NxDomain())
});
ruleGroup.AddRule(new FirewallRule {
Priority = 20,
FirewallDomainList = myBlockList,
// block and override DNS response with a custom domain
Action = FirewallRuleAction.Block(DnsBlockResponse.Override("amazon.com"))
});
Synopsis
Properties
Action | (experimental) The action for this rule. |
FirewallDomainList | (experimental) The domain list for this rule. |
Priority | (experimental) The priority of the rule in the rule group. |
Properties
Action
(experimental) The action for this rule.
FirewallRuleAction Action { get; }
Property Value
Remarks
Stability: Experimental
FirewallDomainList
(experimental) The domain list for this rule.
IFirewallDomainList FirewallDomainList { get; }
Property Value
Remarks
Stability: Experimental
Priority
(experimental) The priority of the rule in the rule group.
double Priority { get; }
Property Value
System.Double
Remarks
This value must be unique within the rule group.
Stability: Experimental