@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-22T19:35:43.887Z")
public abstract class FirewallRuleAction
extends software.amazon.jsii.JsiiObject
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();
Modifier | Constructor and Description |
---|---|
protected |
FirewallRuleAction() |
protected |
FirewallRuleAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
FirewallRuleAction(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
static FirewallRuleAction |
alert()
(experimental) Permit the request to go through but send an alert to the logs.
|
static FirewallRuleAction |
allow()
(experimental) Permit the request to go through.
|
static FirewallRuleAction |
block()
(experimental) Disallow the request.
|
static FirewallRuleAction |
block(DnsBlockResponse response)
(experimental) Disallow the request.
|
abstract java.lang.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.
|
abstract DnsBlockResponse |
getBlockResponse()
(experimental) The way that you want DNS Firewall to block the request.
|
protected FirewallRuleAction(software.amazon.jsii.JsiiObjectRef objRef)
protected FirewallRuleAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected FirewallRuleAction()
public static FirewallRuleAction alert()
public static FirewallRuleAction allow()
public static FirewallRuleAction block(DnsBlockResponse response)
response
- The way that you want DNS Firewall to block the request.public static FirewallRuleAction block()
public abstract java.lang.String getAction()
public abstract DnsBlockResponse getBlockResponse()