Class FirewallRuleAction
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.route53resolver.alpha.FirewallRuleAction
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.109.0 (build c221850)",
date="2025-03-14T03:25:07.385Z")
@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
ConstructorsModifierConstructorDescriptionprotected
protected
FirewallRuleAction
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
FirewallRuleAction
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 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.abstract DnsBlockResponse
(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
(experimental) Permit the request to go through but send an alert to the logs. -
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
(experimental) Disallow the request. -
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
(experimental) The way that you want DNS Firewall to block the request.
-