Interface CfnDistribution.CookieObjectProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnDistribution.CookieObjectProperty extends
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.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 CookieObjectProperty cookieObjectProperty = CookieObjectProperty.builder()
  • Method Details

    • getCookiesAllowList

      @Stability(Stable) @Nullable default List<String> getCookiesAllowList()
      The specific cookies to forward to your distribution's origin.
    • getOption

      @Stability(Stable) @Nullable default String getOption()
      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.
    • builder

      @Stability(Stable) static CfnDistribution.CookieObjectProperty.Builder builder()
      a CfnDistribution.CookieObjectProperty.Builder of CfnDistribution.CookieObjectProperty