Class CfnOriginRequestPolicyPropsMixin.HeadersConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnOriginRequestPolicyPropsMixin.HeadersConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOriginRequestPolicyPropsMixin.HeadersConfigProperty>
- Enclosing interface:
CfnOriginRequestPolicyPropsMixin.HeadersConfigProperty
@Stability(Stable)
public static final class CfnOriginRequestPolicyPropsMixin.HeadersConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOriginRequestPolicyPropsMixin.HeadersConfigProperty>
A builder for
CfnOriginRequestPolicyPropsMixin.HeadersConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.headerBehavior(String headerBehavior) Sets the value ofCfnOriginRequestPolicyPropsMixin.HeadersConfigProperty.getHeaders()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
headerBehavior
@Stability(Stable) public CfnOriginRequestPolicyPropsMixin.HeadersConfigProperty.Builder headerBehavior(String headerBehavior) - Parameters:
headerBehavior- Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid values are:.none– No HTTP headers in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set tonone, any headers that are listed in aCachePolicyare included in origin requests.whitelist– Only the HTTP headers that are listed in theHeaderstype 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 theHeaderstype are included in requests that CloudFront sends to the origin. The additional headers are added by CloudFront.allExcept– All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theHeaderstype, which are not included.
- Returns:
this
-
headers
@Stability(Stable) public CfnOriginRequestPolicyPropsMixin.HeadersConfigProperty.Builder headers(List<String> headers) Sets the value ofCfnOriginRequestPolicyPropsMixin.HeadersConfigProperty.getHeaders()- Parameters:
headers- Contains a list of HTTP header names.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnOriginRequestPolicyPropsMixin.HeadersConfigProperty>- Returns:
- a new instance of
CfnOriginRequestPolicyPropsMixin.HeadersConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-