@Generated(value="jsii-pacmak/1.24.0 (build b722f66)", date="2021-03-11T13:46:52.430Z") @Stability(value=Stable) public class OriginRequestHeaderBehavior extends software.amazon.jsii.JsiiObject
| Modifier | Constructor and Description |
|---|---|
protected |
OriginRequestHeaderBehavior(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
OriginRequestHeaderBehavior(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static OriginRequestHeaderBehavior |
all(String... cloudfrontHeaders)
All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin.
|
static OriginRequestHeaderBehavior |
allowList(String... headers)
Listed headers are included in requests that CloudFront sends to the origin.
|
String |
getBehavior()
The behavior of headers: allow all, none or an allow list.
|
List<String> |
getHeaders()
The headers for the allow list or the included CloudFront headers, if applicable.
|
static OriginRequestHeaderBehavior |
none()
HTTP headers are not included in requests that CloudFront sends to the origin.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected OriginRequestHeaderBehavior(software.amazon.jsii.JsiiObjectRef objRef)
protected OriginRequestHeaderBehavior(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static OriginRequestHeaderBehavior all(@NotNull String... cloudfrontHeaders)
Additionally, any additional CloudFront headers provided are included; the additional headers are added by CloudFront.
cloudfrontHeaders - This parameter is required.https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-cloudfront-headers.html@Stability(value=Stable) @NotNull public static OriginRequestHeaderBehavior allowList(@NotNull String... headers)
headers - This parameter is required.@Stability(value=Stable) @NotNull public static OriginRequestHeaderBehavior none()
Any headers that are listed in a CachePolicy are still included in origin requests.
@Stability(value=Stable) @NotNull public String getBehavior()
Copyright © 2021. All rights reserved.