interface ReferrerPolicyProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins.CfnResponseHeadersPolicyPropsMixin.ReferrerPolicyProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudfront/mixins#CfnResponseHeadersPolicyPropsMixin_ReferrerPolicyProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnResponseHeadersPolicyPropsMixin.ReferrerPolicyProperty |
Python | aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnResponseHeadersPolicyPropsMixin.ReferrerPolicyProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudfront » mixins » CfnResponseHeadersPolicyPropsMixin » ReferrerPolicyProperty |
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 { mixins as cloudfront_mixins } from '@aws-cdk/mixins-preview/aws-cloudfront';
const referrerPolicyProperty: cloudfront_mixins.CfnResponseHeadersPolicyPropsMixin.ReferrerPolicyProperty = {
override: false,
referrerPolicy: 'referrerPolicy',
};
Properties
| Name | Type | Description |
|---|---|---|
| override? | boolean | IResolvable | 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. |
| referrer | string | The value of the Referrer-Policy HTTP response header. Valid values are:. |
override?
Type:
boolean | IResolvable
(optional)
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.
referrerPolicy?
Type:
string
(optional)
The value of the Referrer-Policy HTTP 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.

.NET
Go
Java
Python
TypeScript