Interface FirewallRule
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
FirewallRule.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:49.397Z")
@Stability(Experimental)
public interface FirewallRule
extends software.amazon.jsii.JsiiSerializable
(experimental) A Firewall Rule.
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());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forFirewallRulestatic final classAn implementation forFirewallRule -
Method Summary
Modifier and TypeMethodDescriptionstatic FirewallRule.Builderbuilder()(experimental) The action for this rule.(experimental) The domain list for this rule.(experimental) The priority of the rule in the rule group.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAction
(experimental) The action for this rule. -
getFirewallDomainList
(experimental) The domain list for this rule. -
getPriority
(experimental) The priority of the rule in the rule group.This value must be unique within the rule group.
-
builder
- Returns:
- a
FirewallRule.BuilderofFirewallRule
-