CustomResponseBody - AWS WAFV2

CustomResponseBody

The response body to use in a custom response to a web request. This is referenced by key from CustomResponse CustomResponseBodyKey.

Contents

Content

The payload of the custom response.

You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the ContentType setting.

For information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the AWS WAF Developer Guide.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 10240.

Pattern: [\s\S]*

Required: Yes

ContentType

The type of content in the payload that you are defining in the Content string.

Type: String

Valid Values: TEXT_PLAIN | TEXT_HTML | APPLICATION_JSON

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: