OriginRequestCookieBehavior

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

Bases: object

(experimental) Ddetermines whether any cookies in viewer requests (and if so, which cookies) are included in requests that CloudFront sends to the origin.

Stability

experimental

Attributes

behavior

allow all, none or an allow list.

Stability

experimental

Type

(experimental) The behavior of cookies

Return type

str

cookies

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

Stability

experimental

Return type

Optional[List[str]]

Static Methods

classmethod all()

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

Stability

experimental

Return type

OriginRequestCookieBehavior

classmethod allow_list(*cookies)

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

Parameters

cookies (str) –

Stability

experimental

Return type

OriginRequestCookieBehavior

classmethod none()

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

Any cookies that are listed in a CachePolicy are still included in origin requests.

Stability

experimental

Return type

OriginRequestCookieBehavior