@Stability(value=Stable) public static final class CfnCachePolicy.HeadersConfigProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnCachePolicy.HeadersConfigProperty>
CfnCachePolicy.HeadersConfigProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnCachePolicy.HeadersConfigProperty |
build()
Builds the configured instance.
|
CfnCachePolicy.HeadersConfigProperty.Builder |
headerBehavior(String headerBehavior)
Sets the value of
CfnCachePolicy.HeadersConfigProperty.getHeaderBehavior() |
CfnCachePolicy.HeadersConfigProperty.Builder |
headers(List<String> headers)
Sets the value of
CfnCachePolicy.HeadersConfigProperty.getHeaders() |
@Stability(value=Stable) public CfnCachePolicy.HeadersConfigProperty.Builder headerBehavior(String headerBehavior)
CfnCachePolicy.HeadersConfigProperty.getHeaderBehavior()headerBehavior - Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. This parameter is required.
Valid values are:
none – HTTP headers 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 headers that are listed in an OriginRequestPolicy are included in origin requests.whitelist – The HTTP headers that are listed in the Headers type are included in the cache key and are automatically included in requests that CloudFront sends to the origin.this@Stability(value=Stable) public CfnCachePolicy.HeadersConfigProperty.Builder headers(List<String> headers)
CfnCachePolicy.HeadersConfigProperty.getHeaders()headers - Contains a list of HTTP header names.this@Stability(value=Stable) public CfnCachePolicy.HeadersConfigProperty build()
build in interface software.amazon.jsii.Builder<CfnCachePolicy.HeadersConfigProperty>CfnCachePolicy.HeadersConfigPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.