CacheHeaderBehavior

class aws_cdk.aws_cloudfront.CacheHeaderBehavior(*args, **kwargs)

Bases: object

(experimental) Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin.

Stability

experimental

Attributes

behavior

(experimental) If the no headers will be passed, or an allow list of headers.

Stability

experimental

Return type

str

headers

(experimental) The headers for the allow/deny list, if applicable.

Stability

experimental

Return type

Optional[List[str]]

Static Methods

classmethod allow_list(*headers)

(experimental) Listed headers are included in the cache key and are automatically included in requests that CloudFront sends to the origin.

Parameters

headers (str) –

Stability

experimental

Return type

CacheHeaderBehavior

classmethod none()

(experimental) HTTP headers are not included in the cache key and are not automatically included in requests that CloudFront sends to the origin.

Stability

experimental

Return type

CacheHeaderBehavior