Skip to content

CustomHTTPHeader

Source code in docs_src/capo_wafv2/types/custom_http_header.py
class CustomHTTPHeader(TypedDict, closed=True):
    name: "capo_wafv2.types.custom_http_header_name.CustomHTTPHeaderName"
    """<p>The name of the custom header. </p> <p>For custom request header insertion, when WAF inserts the header into the request, it prefixes this name <code>x-amzn-waf-</code>, to avoid confusion with the headers that are already in the request. For example, for the header name <code>sample</code>, WAF inserts the header <code>x-amzn-waf-sample</code>.</p>"""
    value: "capo_wafv2.types.custom_http_header_value.CustomHTTPHeaderValue"
    """<p>The value of the custom header.</p>"""

name instance-attribute

The name of the custom header.

For custom request header insertion, when WAF inserts the header into the request, it prefixes this name x-amzn-waf-, to avoid confusion with the headers that are already in the request. For example, for the header name sample, WAF inserts the header x-amzn-waf-sample.

value instance-attribute

The value of the custom header.