Interface CfnResponseHeadersPolicy.ReferrerPolicyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnResponseHeadersPolicy.ReferrerPolicyProperty.Jsii$Proxy
- Enclosing class:
CfnResponseHeadersPolicy
@Stability(Stable)
public static interface CfnResponseHeadersPolicy.ReferrerPolicyProperty
extends software.amazon.jsii.JsiiSerializable
Determines whether CloudFront includes the
Referrer-Policy
HTTP response header and the header's value.
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnResponseHeadersPolicy.ReferrerPolicyProperty
static final class
An implementation forCfnResponseHeadersPolicy.ReferrerPolicyProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
A Boolean that determines whether CloudFront overrides theReferrer-Policy
HTTP response header received from the origin with the one specified in this response headers policy.The value of theReferrer-Policy
HTTP response header.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getOverride
A Boolean that determines whether CloudFront overrides theReferrer-Policy
HTTP response header received from the origin with the one specified in this response headers policy.- See Also:
-
getReferrerPolicy
The value of theReferrer-Policy
HTTP response header. Valid values are:.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.
- See Also:
-
builder
-