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 classA builder forCfnResponseHeadersPolicy.ReferrerPolicyPropertystatic final classAn implementation forCfnResponseHeadersPolicy.ReferrerPolicyProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()A Boolean that determines whether CloudFront overrides theReferrer-PolicyHTTP response header received from the origin with the one specified in this response headers policy.The value of theReferrer-PolicyHTTP response header.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getOverride
A Boolean that determines whether CloudFront overrides theReferrer-PolicyHTTP response header received from the origin with the one specified in this response headers policy.Returns union: either
BooleanorIResolvable- See Also:
-
getReferrerPolicy
The value of theReferrer-PolicyHTTP response header. Valid values are:.no-referrerno-referrer-when-downgradeoriginorigin-when-cross-originsame-originstrict-originstrict-origin-when-cross-originunsafe-url
For more information about these values, see Referrer-Policy in the MDN Web Docs.
- See Also:
-
builder
-