@Stability(value=Stable)
public static interface CfnResponseHeadersPolicy.ReferrerPolicyProperty
extends software.amazon.jsii.JsiiSerializable
For more information about the Referrer-Policy HTTP response header, see Referrer-Policy in the MDN Web Docs.
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.*;
ReferrerPolicyProperty referrerPolicyProperty = ReferrerPolicyProperty.builder()
.override(false)
.referrerPolicy("referrerPolicy")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnResponseHeadersPolicy.ReferrerPolicyProperty.Builder
A builder for
CfnResponseHeadersPolicy.ReferrerPolicyProperty |
static class |
CfnResponseHeadersPolicy.ReferrerPolicyProperty.Jsii$Proxy
An implementation for
CfnResponseHeadersPolicy.ReferrerPolicyProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnResponseHeadersPolicy.ReferrerPolicyProperty.Builder |
builder() |
Object |
getOverride()
A Boolean that determines whether CloudFront overrides the `Referrer-Policy` HTTP response header received from the origin with the one specified in this response headers policy.
|
String |
getReferrerPolicy()
The value of the `Referrer-Policy` HTTP response header.
|
@Stability(value=Stable) @NotNull Object getOverride()
@Stability(value=Stable) @NotNull String getReferrerPolicy()
no-referrerno-referrer-when-downgradeoriginorigin-when-cross-originsame-originstrict-originstrict-origin-when-cross-originunsafe-urlFor more information about these values, see Referrer-Policy in the MDN Web Docs.
@Stability(value=Stable) static CfnResponseHeadersPolicy.ReferrerPolicyProperty.Builder builder()
Copyright © 2022. All rights reserved.