@Stability(value=Stable) public static final class CfnOriginRequestPolicy.HeadersConfigProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnOriginRequestPolicy.HeadersConfigProperty>
CfnOriginRequestPolicy.HeadersConfigProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnOriginRequestPolicy.HeadersConfigProperty |
build()
Builds the configured instance.
|
CfnOriginRequestPolicy.HeadersConfigProperty.Builder |
headerBehavior(String headerBehavior)
Sets the value of
CfnOriginRequestPolicy.HeadersConfigProperty.getHeaderBehavior() |
CfnOriginRequestPolicy.HeadersConfigProperty.Builder |
headers(List<String> headers)
Sets the value of
CfnOriginRequestPolicy.HeadersConfigProperty.getHeaders() |
@Stability(value=Stable) public CfnOriginRequestPolicy.HeadersConfigProperty.Builder headerBehavior(String headerBehavior)
CfnOriginRequestPolicy.HeadersConfigProperty.getHeaderBehavior()headerBehavior - Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid values are:. This parameter is required.
none – HTTP headers are not included in requests that CloudFront sends to the origin. Even when this field is set to none , any headers that are listed in a CachePolicy are included in origin requests.whitelist – The HTTP headers that are listed in the Headers type are included in requests that CloudFront sends to the origin.allViewer – All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin.allViewerAndWhitelistCloudFront – All HTTP headers in viewer requests and the additional CloudFront headers that are listed in the Headers type are included in requests that CloudFront sends to the origin. The additional headers are added by CloudFront.this@Stability(value=Stable) public CfnOriginRequestPolicy.HeadersConfigProperty.Builder headers(List<String> headers)
CfnOriginRequestPolicy.HeadersConfigProperty.getHeaders()headers - Contains a list of HTTP header names.this@Stability(value=Stable) public CfnOriginRequestPolicy.HeadersConfigProperty build()
build in interface software.amazon.jsii.Builder<CfnOriginRequestPolicy.HeadersConfigProperty>CfnOriginRequestPolicy.HeadersConfigPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.