public static interface CfnResponseHeadersPolicy.ReferrerPolicyProperty
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() |
java.lang.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.
|
java.lang.String |
getReferrerPolicy()
The value of the `Referrer-Policy` HTTP response header.
|
java.lang.Object getOverride()
java.lang.String getReferrerPolicy()
no-referrer
no-referrer-when-downgrade
origin
origin-when-cross-origin
same-origin
strict-origin
strict-origin-when-cross-origin
unsafe-url
For more information about these values, see Referrer-Policy in the MDN Web Docs.
static CfnResponseHeadersPolicy.ReferrerPolicyProperty.Builder builder()