@Stability(value=Stable)
public static interface CfnCachePolicy.CookiesConfigProperty
extends software.amazon.jsii.JsiiSerializable
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.cloudfront.*;
CookiesConfigProperty cookiesConfigProperty = CookiesConfigProperty.builder()
.cookieBehavior("cookieBehavior")
// the properties below are optional
.cookies(List.of("cookies"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnCachePolicy.CookiesConfigProperty.Builder
A builder for
CfnCachePolicy.CookiesConfigProperty |
static class |
CfnCachePolicy.CookiesConfigProperty.Jsii$Proxy
An implementation for
CfnCachePolicy.CookiesConfigProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnCachePolicy.CookiesConfigProperty.Builder |
builder() |
String |
getCookieBehavior()
Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin.
|
default List<String> |
getCookies()
Contains a list of cookie names.
|
@Stability(value=Stable) @NotNull String getCookieBehavior()
Valid values are:
none – Cookies in viewer requests are not included in the cache key and are not automatically included in requests that CloudFront sends to the origin. Even when this field is set to none , any cookies that are listed in an OriginRequestPolicy are included in origin requests.whitelist – The cookies in viewer requests that are listed in the CookieNames type are included in the cache key and automatically included in requests that CloudFront sends to the origin.allExcept – All cookies in viewer requests that are not listed in the CookieNames type are included in the cache key and automatically included in requests that CloudFront sends to the origin.all – All cookies in viewer requests are included in the cache key and are automatically included in requests that CloudFront sends to the origin.@Stability(value=Stable) @Nullable default List<String> getCookies()
@Stability(value=Stable) static CfnCachePolicy.CookiesConfigProperty.Builder builder()
Copyright © 2022. All rights reserved.