CacheHeaderBehavior

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

Bases: object

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

Attributes

behavior

If no headers will be passed, or an allow list of headers.

Return type

str

headers

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

Return type

Optional[List[str]]

Static Methods

classmethod allow_list(*headers)

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

Parameters

headers (str) –

Return type

CacheHeaderBehavior

classmethod none()

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

Return type

CacheHeaderBehavior