Class CfnResponseHeadersPolicy.ReferrerPolicyProperty
Determines whether CloudFront includes the Referrer-Policy
HTTP response header and the header's value.
Inheritance
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ReferrerPolicyProperty : Object, CfnResponseHeadersPolicy.IReferrerPolicyProperty
Syntax (vb)
Public Class ReferrerPolicyProperty
Inherits Object
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() |
Properties
Override | A Boolean that determines whether CloudFront overrides the |
ReferrerPolicy | The value of the |
Constructors
ReferrerPolicyProperty()
public ReferrerPolicyProperty()
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
System.Object
Remarks
ReferrerPolicy
The value of the Referrer-Policy
HTTP response header. Valid values are:.
public string ReferrerPolicy { get; set; }
Property Value
System.String
Remarks
For more information about these values, see Referrer-Policy in the MDN Web Docs.