@Stability(value=Stable)
public static interface CfnOriginRequestPolicy.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 |
CfnOriginRequestPolicy.CookiesConfigProperty.Builder
A builder for
CfnOriginRequestPolicy.CookiesConfigProperty |
static class |
CfnOriginRequestPolicy.CookiesConfigProperty.Jsii$Proxy
An implementation for
CfnOriginRequestPolicy.CookiesConfigProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnOriginRequestPolicy.CookiesConfigProperty.Builder |
builder() |
String |
getCookieBehavior()
Determines whether cookies in viewer requests are 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()
none – Cookies in viewer requests are not included in requests that CloudFront sends to the origin. Even when this field is set to none , any cookies that are listed in a CachePolicy are included in origin requests.whitelist – The cookies in viewer requests that are listed in the CookieNames type are included in requests that CloudFront sends to the origin.all – All cookies in viewer requests are included in requests that CloudFront sends to the origin.@Stability(value=Stable) @Nullable default List<String> getCookies()
@Stability(value=Stable) static CfnOriginRequestPolicy.CookiesConfigProperty.Builder builder()
Copyright © 2022. All rights reserved.