You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Lightsail::Types::CookieObject

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CookieObject as input to an Aws::Client method, you can use a vanilla Hash:

{
  option: "none", # accepts none, allow-list, all
  cookies_allow_list: ["string"],
}

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.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#cookies_allow_listArray<String>

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

Returns:

  • (Array<String>)

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

#optionString

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.

Possible values:

  • none
  • allow-list
  • all

Returns:

  • (String)

    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.