OriginRequestCookieBehavior¶
-
class
aws_cdk.aws_cloudfront.
OriginRequestCookieBehavior
(*args: Any, **kwargs)¶ Bases:
object
Determines whether any cookies in viewer requests (and if so, which cookies) are included in requests that CloudFront sends to the origin.
Attributes
-
behavior
¶ allow all, none or an allow list.
- Type
The behavior of cookies
- Return type
str
The cookies to allow, if the behavior is an allow list.
- Return type
Optional
[List
[str
]]
Static Methods
-
classmethod
all
()¶ All cookies in viewer requests are included in requests that CloudFront sends to the origin.
- Return type
-
classmethod
allow_list
(*cookies)¶ Only the provided
cookies
are included in requests that CloudFront sends to the origin.- Parameters
cookies (
str
) –- Return type
-
classmethod
none
()¶ 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.
- Return type
-