AWS::Lightsail::Distribution CookieObject - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::Lightsail::Distribution CookieObject

CookieObject is a property of the CacheSettings property. It describes whether an Amazon Lightsail content delivery network (CDN) distribution forwards cookies to the origin and, if so, which ones.

For the cookies that you specify, your distribution caches separate versions of the specified content based on the cookie values in viewer requests.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "CookiesAllowList" : [ String, ... ], "Option" : String }

YAML

CookiesAllowList: - String Option: String

Properties

CookiesAllowList

The specific cookies to forward to your distribution's origin.

Required: No

Type: Array of String

Update requires: No interruption

Option

Specifies which cookies to forward to the distribution's origin for a cache behavior.

Use one of the following configurations for your distribution:

  • all - Forwards all cookies to your origin.

  • none - Doesn’t forward cookies to your origin.

  • allow-list - Forwards only the cookies that you specify using the CookiesAllowList parameter.

Required: No

Type: String

Allowed values: none | allow-list | all

Update requires: No interruption