CacheCookieBehavior

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

Bases: object

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

Stability

experimental

Attributes

behavior

allow all, none, an allow list, or a deny list.

Stability

experimental

Type

(experimental) The behavior of cookies

Return type

str

cookies

(experimental) The cookies to allow or deny, if the behavior is an allow or deny list.

Stability

experimental

Return type

Optional[List[str]]

Static Methods

classmethod all()

(experimental) All cookies in viewer requests are included in the cache key and are automatically included in requests that CloudFront sends to the origin.

Stability

experimental

Return type

CacheCookieBehavior

classmethod allow_list(*cookies)

(experimental) Only the provided cookies are included in the cache key and automatically included in requests that CloudFront sends to the origin.

Parameters

cookies (str) –

Stability

experimental

Return type

CacheCookieBehavior

classmethod deny_list(*cookies)

(experimental) All cookies except the provided cookies are included in the cache key and automatically included in requests that CloudFront sends to the origin.

Parameters

cookies (str) –

Stability

experimental

Return type

CacheCookieBehavior

classmethod none()

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

Stability

experimental

Return type

CacheCookieBehavior