Skip to content

CustomResponseBody

Source code in docs_src/capo_wafv2/types/custom_response_body.py
class CustomResponseBody(TypedDict, closed=True):
    content_type: "capo_wafv2.types.response_content_type.ResponseContentType"
    """<p>The type of content in the payload that you are defining in the <code>Content</code> string.</p>"""
    content: "capo_wafv2.types.response_content.ResponseContent"
    """<p>The payload of the custom response. </p> <p>You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the <code>ContentType</code> setting. </p> <p>For information about the limits on count and size for custom request and response settings, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">WAF quotas</a> in the <i>WAF Developer Guide</i>. </p>"""

content instance-attribute

content: ResponseContent

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 in the WAF Developer Guide.

content_type instance-attribute

content_type: ResponseContentType

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