@Generated(value="jsii-pacmak/1.62.0 (build 293ac17)", date="2022-07-30T00:01:30.893Z") @Stability(value=Experimental) public interface FirewallRule extends software.amazon.jsii.JsiiSerializable
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.
|
Number |
getPriority()
(experimental) The priority of the rule in the rule group.
|
@Stability(value=Experimental) @NotNull FirewallRuleAction getAction()
@Stability(value=Experimental) @NotNull IFirewallDomainList getFirewallDomainList()
@Stability(value=Experimental) @NotNull Number getPriority()
This value must be unique within the rule group.
@Stability(value=Experimental) static FirewallRule.Builder builder()
FirewallRule.Builder of FirewallRuleCopyright © 2022. All rights reserved.