amazonka-cloudfront-2.0: Amazon CloudFront SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudFront.Types.ResponseHeadersPolicyReferrerPolicy

Description

 
Synopsis

Documentation

data ResponseHeadersPolicyReferrerPolicy Source #

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.

See: newResponseHeadersPolicyReferrerPolicy smart constructor.

Constructors

ResponseHeadersPolicyReferrerPolicy' 

Fields

  • override :: Bool

    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 :: ReferrerPolicyList

    The value of the Referrer-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.

Instances

Instances details
FromXML ResponseHeadersPolicyReferrerPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyReferrerPolicy

ToXML ResponseHeadersPolicyReferrerPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyReferrerPolicy

Generic ResponseHeadersPolicyReferrerPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyReferrerPolicy

Read ResponseHeadersPolicyReferrerPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyReferrerPolicy

Show ResponseHeadersPolicyReferrerPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyReferrerPolicy

NFData ResponseHeadersPolicyReferrerPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyReferrerPolicy

Eq ResponseHeadersPolicyReferrerPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyReferrerPolicy

Hashable ResponseHeadersPolicyReferrerPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyReferrerPolicy

type Rep ResponseHeadersPolicyReferrerPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyReferrerPolicy

type Rep ResponseHeadersPolicyReferrerPolicy = D1 ('MetaData "ResponseHeadersPolicyReferrerPolicy" "Amazonka.CloudFront.Types.ResponseHeadersPolicyReferrerPolicy" "amazonka-cloudfront-2.0-8Jb7luniAuUfLdUxCxW4K" 'False) (C1 ('MetaCons "ResponseHeadersPolicyReferrerPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "override") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "referrerPolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ReferrerPolicyList)))

newResponseHeadersPolicyReferrerPolicy Source #

Create a value of ResponseHeadersPolicyReferrerPolicy with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:override:ResponseHeadersPolicyReferrerPolicy', responseHeadersPolicyReferrerPolicy_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.

$sel:referrerPolicy:ResponseHeadersPolicyReferrerPolicy', responseHeadersPolicyReferrerPolicy_referrerPolicy - The value of the Referrer-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.

responseHeadersPolicyReferrerPolicy_override :: Lens' ResponseHeadersPolicyReferrerPolicy Bool Source #

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.

responseHeadersPolicyReferrerPolicy_referrerPolicy :: Lens' ResponseHeadersPolicyReferrerPolicy ReferrerPolicyList Source #

The value of the Referrer-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.