Skip to content

CachePolicyHeadersConfig

Source code in docs_src/capo_cloudfront/types/cache_policy_headers_config.py
class CachePolicyHeadersConfig(TypedDict, closed=True):
    header_behavior: (
        "capo_cloudfront.types.cache_policy_header_behavior.CachePolicyHeaderBehavior"
    )
    """<p>Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:</p> <ul> <li> <p> <code>none</code> – No HTTP headers are included in the cache key or in requests that CloudFront sends to the origin. Even when this field is set to <code>none</code>, any headers that are listed in an <code>OriginRequestPolicy</code> <i>are</i> included in origin requests.</p> </li> <li> <p> <code>whitelist</code> – Only the HTTP headers that are listed in the <code>Headers</code> type are included in the cache key and in requests that CloudFront sends to the origin.</p> </li> </ul>"""
    headers: NotRequired["capo_cloudfront.types.headers.Headers"]

header_behavior instance-attribute

header_behavior: CachePolicyHeaderBehavior

Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:

  • none – No HTTP headers are included in the cache key or in requests that CloudFront sends to the origin. Even when this field is set to none, any headers that are listed in an OriginRequestPolicy are included in origin requests.

  • whitelist – Only the HTTP headers that are listed in the Headers type are included in the cache key and in requests that CloudFront sends to the origin.

headers instance-attribute

headers: NotRequired[Headers]