JsonBody

class 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

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

What WAF should do if it fails to completely parse the JSON body. The options are the following:

Link copied to clipboard

The patterns to look for in the JSON body. WAF inspects the results of these pattern matches against the rule inspection criteria.

Link copied to clipboard

The parts of the JSON to match against using the MatchPattern. If you specify ALL, WAF matches against keys and values.

Link copied to clipboard

What WAF should do if the body is larger than WAF can inspect.

Functions

Link copied to clipboard
inline fun copy(block: JsonBody.Builder.() -> Unit = {}): JsonBody
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String