@Stability(value=Stable)
public static interface CfnDistribution.CookieObjectProperty
extends software.amazon.jsii.JsiiSerializable
For the cookies that you specify, your distribution caches separate versions of the specified content based on the cookie values in viewer requests.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lightsail.*;
CookieObjectProperty cookieObjectProperty = CookieObjectProperty.builder()
.cookiesAllowList(List.of("cookiesAllowList"))
.option("option")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDistribution.CookieObjectProperty.Builder
A builder for
CfnDistribution.CookieObjectProperty |
static class |
CfnDistribution.CookieObjectProperty.Jsii$Proxy
An implementation for
CfnDistribution.CookieObjectProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnDistribution.CookieObjectProperty.Builder |
builder() |
default List<String> |
getCookiesAllowList()
The specific cookies to forward to your distribution's origin.
|
default String |
getOption()
Specifies which cookies to forward to the distribution's origin for a cache behavior.
|
@Stability(value=Stable) @Nullable default List<String> getCookiesAllowList()
@Stability(value=Stable) @Nullable default String getOption()
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.@Stability(value=Stable) static CfnDistribution.CookieObjectProperty.Builder builder()
Copyright © 2022. All rights reserved.