JsonBody
Inspect the body of the web request as JSON. The body immediately follows the request headers.
This is used to indicate the web request component to inspect, in the FieldToMatch specification.
Use the specifications in this object to indicate which parts of the JSON body to inspect using the rule's inspection criteria. WAF inspects only the parts of the JSON that result from the matches that you indicate.
Example JSON: "JsonBody": { "MatchPattern": { "All": {} }, "MatchScope": "ALL" }
For additional information about this request component option, see JSON body in the WAF Developer Guide.
Types
Properties
What WAF should do if it fails to completely parse the JSON body. The options are the following:
The patterns to look for in the JSON body. WAF inspects the results of these pattern matches against the rule inspection criteria.
The parts of the JSON to match against using the MatchPattern
. If you specify ALL
, WAF matches against keys and values.
What WAF should do if the body is larger than WAF can inspect.