public static interface CfnOriginRequestPolicy.CookiesConfigProperty
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() |
java.lang.String |
getCookieBehavior()
Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin.
|
default java.util.List<java.lang.String> |
getCookies()
Contains a list of cookie names.
|
java.lang.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.default java.util.List<java.lang.String> getCookies()
static CfnOriginRequestPolicy.CookiesConfigProperty.Builder builder()