jsonBody

fun jsonBody(block: JsonBody.Builder.() -> Unit)

construct an aws.sdk.kotlin.services.wafv2.model.JsonBody inside the given block


Inspect the request body as JSON. The request body immediately follows the request headers. This is the part of a request that contains any additional data that you want to send to your web server as the HTTP request body, such as data from a form.

A limited amount of the request body is forwarded to WAF for inspection by the underlying host service. For regional resources, the limit is 8 KB (8,192 bytes) and for CloudFront distributions, the limit is 16 KB (16,384 bytes). For CloudFront distributions, you can increase the limit in the web ACL's AssociationConfig, for additional processing fees.

For information about how to handle oversized request bodies, see the JsonBody object configuration.