Skip to content

HttpHeaderConditionConfig

Source code in docs_src/capo_elastic_load_balancing_v2/types/http_header_condition_config.py
class HttpHeaderConditionConfig(TypedDict, closed=True):
    http_header_name: NotRequired[
        "capo_elastic_load_balancing_v2.types.http_header_condition_name.HttpHeaderConditionName"
    ]
    """<p>The name of the HTTP header field. The maximum length is 40 characters. The header name is case insensitive. The allowed characters are specified by RFC 7230. Wildcards are not supported.</p> <p>You can't use an HTTP header condition to specify the host header. Instead, use a <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#host-conditions">host condition</a>.</p>"""
    values: NotRequired[
        "capo_elastic_load_balancing_v2.types.list_of_string.ListOfString"
    ]
    """<p>The strings to compare against the value of the HTTP header. The maximum length of each string is 128 characters. The comparison strings are case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character).</p> <p>If the same header appears multiple times in the request, we search them in order until a match is found.</p> <p>If you specify multiple strings, the condition is satisfied if one of the strings matches the value of the HTTP header. To require that all of the strings are a match, create one condition per string.</p>"""
    regex_values: NotRequired[
        "capo_elastic_load_balancing_v2.types.list_of_string.ListOfString"
    ]
    """<p>The regular expression to compare against the HTTP header. The maximum length of each string is 128 characters.</p>"""

http_header_name instance-attribute

http_header_name: NotRequired[HttpHeaderConditionName]

The name of the HTTP header field. The maximum length is 40 characters. The header name is case insensitive. The allowed characters are specified by RFC 7230. Wildcards are not supported.

You can't use an HTTP header condition to specify the host header. Instead, use a host condition.

regex_values instance-attribute

regex_values: NotRequired[ListOfString]

The regular expression to compare against the HTTP header. The maximum length of each string is 128 characters.

values instance-attribute

values: NotRequired[ListOfString]

The strings to compare against the value of the HTTP header. The maximum length of each string is 128 characters. The comparison strings are case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character).

If the same header appears multiple times in the request, we search them in order until a match is found.

If you specify multiple strings, the condition is satisfied if one of the strings matches the value of the HTTP header. To require that all of the strings are a match, create one condition per string.