@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-22T19:35:43.886Z")
public interface FirewallRule
Example:
FirewallDomainList myBlockList; FirewallRuleGroup ruleGroup; ruleGroup.addRule(FirewallRule.builder() .priority(10) .firewallDomainList(myBlockList) // block and reply with NXDOMAIN .action(FirewallRuleAction.block(DnsBlockResponse.nxDomain())) .build()); ruleGroup.addRule(FirewallRule.builder() .priority(20) .firewallDomainList(myBlockList) // block and override DNS response with a custom domain .action(FirewallRuleAction.block(DnsBlockResponse.override("amazon.com"))) .build());
Modifier and Type | Interface and Description |
---|---|
static class |
FirewallRule.Builder
A builder for
FirewallRule |
static class |
FirewallRule.Jsii$Proxy
An implementation for
FirewallRule |
Modifier and Type | Method and Description |
---|---|
static FirewallRule.Builder |
builder() |
FirewallRuleAction |
getAction()
(experimental) The action for this rule.
|
IFirewallDomainList |
getFirewallDomainList()
(experimental) The domain list for this rule.
|
java.lang.Number |
getPriority()
(experimental) The priority of the rule in the rule group.
|
FirewallRuleAction getAction()
IFirewallDomainList getFirewallDomainList()
java.lang.Number getPriority()
This value must be unique within the rule group.
static FirewallRule.Builder builder()
FirewallRule.Builder
of FirewallRule