class Aws::WAFV2::Types::CustomResponseBody
The response body to use in a custom response to a web request. This is referenced by key from CustomResponse
`CustomResponseBodyKey`.
@note When making an API call, you may pass CustomResponseBody
data as a hash: { content_type: "TEXT_PLAIN", # required, accepts TEXT_PLAIN, TEXT_HTML, APPLICATION_JSON content: "ResponseContent", # required }
@!attribute [rw] content_type
The type of content in the payload that you are defining in the `Content` string. @return [String]
@!attribute [rw] 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 [WAF quotas][1] in the [WAF Developer Guide][2]. [1]: https://docs.aws.amazon.com/waf/latest/developerguide/limits.html [2]: https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html @return [String]
@see docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/CustomResponseBody AWS API Documentation
Constants
- SENSITIVE