Class CfnRuleGroup.RuleActionProperty.Jsii$Proxy
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.wafv2.CfnRuleGroup.RuleActionProperty.Jsii$Proxy
- All Implemented Interfaces:
CfnRuleGroup.RuleActionProperty
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- CfnRuleGroup.RuleActionProperty
@Stability(Stable)
@Internal
public static final class CfnRuleGroup.RuleActionProperty.Jsii$Proxy
extends software.amazon.jsii.JsiiObject
implements CfnRuleGroup.RuleActionProperty
An implementation for
CfnRuleGroup.RuleActionProperty
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.wafv2.CfnRuleGroup.RuleActionProperty
CfnRuleGroup.RuleActionProperty.Builder, CfnRuleGroup.RuleActionProperty.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor that initializes the object based on literal property values passed by theCfnRuleGroup.RuleActionProperty.Builder
.protected
Jsii$Proxy
(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
final boolean
final Object
getAllow()
Instructs AWS WAF to allow the web request.final Object
getBlock()
Instructs AWS WAF to block the web request.final Object
Specifies that AWS WAF should run aCAPTCHA
check against the request:.final Object
Instructs AWS WAF to run aChallenge
check against the web request.final Object
getCount()
Instructs AWS WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.final int
hashCode()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCfnRuleGroup.RuleActionProperty.Builder
.
-
-
Method Details
-
getAllow
Description copied from interface:CfnRuleGroup.RuleActionProperty
Instructs AWS WAF to allow the web request.- Specified by:
getAllow
in interfaceCfnRuleGroup.RuleActionProperty
-
getBlock
Description copied from interface:CfnRuleGroup.RuleActionProperty
Instructs AWS WAF to block the web request.- Specified by:
getBlock
in interfaceCfnRuleGroup.RuleActionProperty
-
getCaptcha
Description copied from interface:CfnRuleGroup.RuleActionProperty
Specifies that AWS WAF should run aCAPTCHA
check against the request:.- If the request includes a valid, unexpired
CAPTCHA
token, AWS WAF allows the web request inspection to proceed to the next rule, similar to aCountAction
. - If the request doesn't include a valid, unexpired
CAPTCHA
token, AWS WAF discontinues the web ACL evaluation of the request and blocks it from going to its intended destination.
AWS WAF generates a response that it sends back to the client, which includes the following:
- The header
x-amzn-waf-action
with a value ofcaptcha
. - The HTTP status code
405 Method Not Allowed
. - If the request contains an
Accept
header with a value oftext/html
, the response includes aCAPTCHA
challenge.
You can configure the expiration time in the
CaptchaConfig
ImmunityTimeProperty
setting at the rule and web ACL level. The rule setting overrides the web ACL setting.This action option is available for rules. It isn't available for web ACL default actions.
- Specified by:
getCaptcha
in interfaceCfnRuleGroup.RuleActionProperty
- If the request includes a valid, unexpired
-
getChallenge
Description copied from interface:CfnRuleGroup.RuleActionProperty
Instructs AWS WAF to run aChallenge
check against the web request.- Specified by:
getChallenge
in interfaceCfnRuleGroup.RuleActionProperty
-
getCount
Description copied from interface:CfnRuleGroup.RuleActionProperty
Instructs AWS WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.- Specified by:
getCount
in interfaceCfnRuleGroup.RuleActionProperty
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-