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.116.0 (build 0eddcff)",
date="2025-10-24T13:34:49.397Z")
@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
ConstructorsModifierConstructorDescriptionprotectedprotectedFirewallRuleAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedFirewallRuleAction(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic FirewallRuleActionalert()(experimental) Permit the request to go through but send an alert to the logs.static FirewallRuleActionallow()(experimental) Permit the request to go through.static FirewallRuleActionblock()(experimental) Disallow the request.static FirewallRuleActionblock(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, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.
-