Class FirewallRuleAction

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.route53resolver.FirewallRuleAction
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:40.409Z") @Stability(Experimental) public abstract class FirewallRuleAction extends software.amazon.jsii.JsiiObject
(experimental) A Firewall Rule.

Example:

 FirewallDomainList myBlockList;
 FirewallRuleGroup.Builder.create(this, "RuleGroup")
         .rules(List.of(FirewallRule.builder()
                 .priority(10)
                 .firewallDomainList(myBlockList)
                 // block and reply with NODATA
                 .action(FirewallRuleAction.block())
                 .build()))
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    FirewallRuleAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    FirewallRuleAction(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (experimental) Permit the request to go through but send an alert to the logs.
    (experimental) Permit the request to go through.
    (experimental) Disallow the request.
    (experimental) Disallow the request.
    abstract String
    (experimental) The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list.
    (experimental) The way that you want DNS Firewall to block the request.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • FirewallRuleAction

      protected FirewallRuleAction(software.amazon.jsii.JsiiObjectRef objRef)
    • FirewallRuleAction

      protected FirewallRuleAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • FirewallRuleAction

      @Stability(Experimental) protected FirewallRuleAction()
  • Method Details

    • alert

      @Stability(Experimental) @NotNull public static FirewallRuleAction alert()
      (experimental) Permit the request to go through but send an alert to the logs.
    • allow

      @Stability(Experimental) @NotNull public static FirewallRuleAction allow()
      (experimental) Permit the request to go through.
    • block

      @Stability(Experimental) @NotNull public static FirewallRuleAction block(@Nullable DnsBlockResponse response)
      (experimental) Disallow the request.

      Parameters:
      response - The way that you want DNS Firewall to block the request.
    • block

      @Stability(Experimental) @NotNull public static FirewallRuleAction block()
      (experimental) Disallow the request.
    • getAction

      @Stability(Experimental) @NotNull public abstract String getAction()
      (experimental) The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list.
    • getBlockResponse

      @Stability(Experimental) @Nullable public abstract DnsBlockResponse getBlockResponse()
      (experimental) The way that you want DNS Firewall to block the request.