@Stability(value=Stable) @Internal public static final class CfnWebACL.JsonBodyProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnWebACL.JsonBodyProperty
CfnWebACL.JsonBodyPropertysoftware.amazon.jsii.JsiiObject.InitializationModeCfnWebACL.JsonBodyProperty.Builder, CfnWebACL.JsonBodyProperty.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(CfnWebACL.JsonBodyProperty.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CfnWebACL.AllowActionProperty.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getInvalidFallbackBehavior()
What AWS WAF should do if it fails to completely parse the JSON body.
|
Object |
getMatchPattern()
The patterns to look for in the JSON body.
|
String |
getMatchScope()
The parts of the JSON to match against using the `MatchPattern` .
|
String |
getOversizeHandling()
What AWS WAF should do if the body is larger than AWS WAF can inspect.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(CfnWebACL.JsonBodyProperty.Builder builder)
CfnWebACL.AllowActionProperty.Builder.public final Object getMatchPattern()
CfnWebACL.JsonBodyPropertyAWS WAF inspects the results of these pattern matches against the rule inspection criteria.
getMatchPattern in interface CfnWebACL.JsonBodyPropertypublic final String getMatchScope()
CfnWebACL.JsonBodyProperty
If you specify All , AWS WAF matches against keys and values.
getMatchScope in interface CfnWebACL.JsonBodyPropertypublic final String getInvalidFallbackBehavior()
CfnWebACL.JsonBodyProperty
EVALUATE_AS_STRING - Inspect the body as plain text. AWS WAF applies the text transformations and inspection criteria that you defined for the JSON inspection to the body text string.MATCH - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.NO_MATCH - Treat the web request as not matching the rule statement.If you don't provide this setting, AWS WAF parses and evaluates the content only up to the first parsing failure that it encounters.
AWS WAF does its best to parse the entire JSON body, but might be forced to stop for reasons such as invalid characters, duplicate keys, truncation, and any content whose root node isn't an object or an array.
AWS WAF parses the JSON in the following examples as two valid key, value pairs:
{"key1":"value1""key2":"value2"}{"key1":"value1","key2""value2"}{"key1"::"value1","key2""value2"}getInvalidFallbackBehavior in interface CfnWebACL.JsonBodyPropertypublic final String getOversizeHandling()
CfnWebACL.JsonBodyPropertyAWS WAF does not support inspecting the entire contents of the body of a web request when the body exceeds 8 KB (8192 bytes). Only the first 8 KB of the request body are forwarded to AWS WAF by the underlying host service.
The options for oversize handling are the following:
CONTINUE - Inspect the body normally, according to the rule inspection criteria.MATCH - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.NO_MATCH - Treat the web request as not matching the rule statement.
You can combine the MATCH or NO_MATCH settings for oversize handling with your rule and web ACL action settings, so that you block any request whose body is over 8 KB.
Default: CONTINUE
getOversizeHandling in interface CfnWebACL.JsonBodyProperty@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.