Interface FirewallRule

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
FirewallRule.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:40.408Z") @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());
 
  • Method Details

    • getAction

      @Stability(Experimental) @NotNull FirewallRuleAction getAction()
      (experimental) The action for this rule.
    • getFirewallDomainList

      @Stability(Experimental) @NotNull IFirewallDomainList getFirewallDomainList()
      (experimental) The domain list for this rule.
    • getPriority

      @Stability(Experimental) @NotNull Number getPriority()
      (experimental) The priority of the rule in the rule group.

      This value must be unique within the rule group.

    • builder

      @Stability(Experimental) static FirewallRule.Builder builder()
      Returns:
      a FirewallRule.Builder of FirewallRule