Class CfnWebACL.RuleActionProperty.Jsii$Proxy
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.wafv2.CfnWebACL.RuleActionProperty.Jsii$Proxy
- All Implemented Interfaces:
CfnWebACL.RuleActionProperty,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CfnWebACL.RuleActionProperty
@Stability(Stable)
@Internal
public static final class CfnWebACL.RuleActionProperty.Jsii$Proxy
extends software.amazon.jsii.JsiiObject
implements CfnWebACL.RuleActionProperty
An implementation for
CfnWebACL.RuleActionProperty-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.wafv2.CfnWebACL.RuleActionProperty
CfnWebACL.RuleActionProperty.Builder, CfnWebACL.RuleActionProperty.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor that initializes the object based on literal property values passed by theCfnWebACL.RuleActionProperty.Builder.protectedJsii$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.JsonNodefinal booleanfinal ObjectgetAllow()Instructs AWS WAF to allow the web request.final ObjectgetBlock()Instructs AWS WAF to block the web request.final ObjectSpecifies that AWS WAF should run aCAPTCHAcheck against the request:.final ObjectInstructs AWS WAF to run aChallengecheck against the web request.final ObjectgetCount()Instructs AWS WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.final inthashCode()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 theCfnWebACL.RuleActionProperty.Builder.
-
-
Method Details
-
getAllow
Description copied from interface:CfnWebACL.RuleActionPropertyInstructs AWS WAF to allow the web request.Returns union: either
IResolvableorCfnWebACL.AllowActionProperty- Specified by:
getAllowin interfaceCfnWebACL.RuleActionProperty- See Also:
-
getBlock
Description copied from interface:CfnWebACL.RuleActionPropertyInstructs AWS WAF to block the web request.Returns union: either
IResolvableorCfnWebACL.BlockActionProperty- Specified by:
getBlockin interfaceCfnWebACL.RuleActionProperty- See Also:
-
getCaptcha
Description copied from interface:CfnWebACL.RuleActionPropertySpecifies that AWS WAF should run aCAPTCHAcheck against the request:.- If the request includes a valid, unexpired
CAPTCHAtoken, 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
CAPTCHAtoken, 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-actionwith a value ofcaptcha. - The HTTP status code
405 Method Not Allowed. - If the request contains an
Acceptheader with a value oftext/html, the response includes aCAPTCHAchallenge.
You can configure the expiration time in the
CaptchaConfigImmunityTimePropertysetting 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.
Returns union: either
IResolvableorCfnWebACL.CaptchaActionProperty- Specified by:
getCaptchain interfaceCfnWebACL.RuleActionProperty- See Also:
- If the request includes a valid, unexpired
-
getChallenge
Description copied from interface:CfnWebACL.RuleActionPropertyInstructs AWS WAF to run aChallengecheck against the web request.Returns union: either
IResolvableorCfnWebACL.ChallengeActionProperty- Specified by:
getChallengein interfaceCfnWebACL.RuleActionProperty- See Also:
-
getCount
Description copied from interface:CfnWebACL.RuleActionPropertyInstructs AWS WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.Returns union: either
IResolvableorCfnWebACL.CountActionProperty- Specified by:
getCountin interfaceCfnWebACL.RuleActionProperty- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-