Class CfnResponseHeadersPolicy.ReferrerPolicyProperty
Determines whether CloudFront includes the Referrer-Policy HTTP response header and the header's value.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnResponseHeadersPolicy.ReferrerPolicyProperty : CfnResponseHeadersPolicy.IReferrerPolicyProperty
Syntax (vb)
Public Class CfnResponseHeadersPolicy.ReferrerPolicyProperty Implements CfnResponseHeadersPolicy.IReferrerPolicyProperty
Remarks
For more information about the Referrer-Policy HTTP response header, see Referrer-Policy in the MDN Web Docs.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var referrerPolicyProperty = new ReferrerPolicyProperty {
Override = false,
ReferrerPolicy = "referrerPolicy"
};
Synopsis
Constructors
| ReferrerPolicyProperty() | Determines whether CloudFront includes the |
Properties
| Override | A Boolean that determines whether CloudFront overrides the |
| ReferrerPolicy | The value of the |
Constructors
ReferrerPolicyProperty()
Determines whether CloudFront includes the Referrer-Policy HTTP response header and the header's value.
public ReferrerPolicyProperty()
Remarks
For more information about the Referrer-Policy HTTP response header, see Referrer-Policy in the MDN Web Docs.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var referrerPolicyProperty = new ReferrerPolicyProperty {
Override = false,
ReferrerPolicy = "referrerPolicy"
};
Properties
Override
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.
public object Override { get; set; }
Property Value
Remarks
ReferrerPolicy
The value of the Referrer-Policy HTTP response header. Valid values are:.
public string ReferrerPolicy { get; set; }
Property Value
Remarks
For more information about these values, see Referrer-Policy in the MDN Web Docs.