

# CookieObject
<a name="API_CookieObject"></a>

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.

## Contents
<a name="API_CookieObject_Contents"></a>

 ** cookiesAllowList **   <a name="Lightsail-Type-CookieObject-cookiesAllowList"></a>
The specific cookies to forward to your distribution's origin.  
Type: Array of strings  
Required: No

 ** option **   <a name="Lightsail-Type-CookieObject-option"></a>
Specifies which cookies to forward to the distribution's origin for a cache behavior: `all`, `none`, or `allow-list` to forward only the cookies specified in the `cookiesAllowList` parameter.  
Type: String  
Valid Values: `none | allow-list | all`   
Required: No

## See Also
<a name="API_CookieObject_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/lightsail-2016-11-28/CookieObject) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/lightsail-2016-11-28/CookieObject) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/lightsail-2016-11-28/CookieObject) 