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.ResponseHeadersPolicyXSSProtection

Description

 
Synopsis

Documentation

data ResponseHeadersPolicyXSSProtection Source #

Determines whether CloudFront includes the X-XSS-Protection HTTP response header and the header's value.

For more information about the X-XSS-Protection HTTP response header, see X-XSS-Protection in the MDN Web Docs.

See: newResponseHeadersPolicyXSSProtection smart constructor.

Constructors

ResponseHeadersPolicyXSSProtection' 

Fields

  • modeBlock :: Maybe Bool

    A Boolean that determines whether CloudFront includes the mode=block directive in the X-XSS-Protection header.

    For more information about this directive, see X-XSS-Protection in the MDN Web Docs.

  • reportUri :: Maybe Text

    A reporting URI, which CloudFront uses as the value of the report directive in the X-XSS-Protection header.

    You cannot specify a ReportUri when ModeBlock is true.

    For more information about using a reporting URL, see X-XSS-Protection in the MDN Web Docs.

  • override :: Bool

    A Boolean that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.

  • protection :: Bool

    A Boolean that determines the value of the X-XSS-Protection HTTP response header. When this setting is true, the value of the X-XSS-Protection header is 1. When this setting is false, the value of the X-XSS-Protection header is 0.

    For more information about these settings, see X-XSS-Protection in the MDN Web Docs.

Instances

Instances details
FromXML ResponseHeadersPolicyXSSProtection Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyXSSProtection

ToXML ResponseHeadersPolicyXSSProtection Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyXSSProtection

Generic ResponseHeadersPolicyXSSProtection Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyXSSProtection

Associated Types

type Rep ResponseHeadersPolicyXSSProtection :: Type -> Type #

Read ResponseHeadersPolicyXSSProtection Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyXSSProtection

Show ResponseHeadersPolicyXSSProtection Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyXSSProtection

NFData ResponseHeadersPolicyXSSProtection Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyXSSProtection

Eq ResponseHeadersPolicyXSSProtection Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyXSSProtection

Hashable ResponseHeadersPolicyXSSProtection Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyXSSProtection

type Rep ResponseHeadersPolicyXSSProtection Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyXSSProtection

type Rep ResponseHeadersPolicyXSSProtection = D1 ('MetaData "ResponseHeadersPolicyXSSProtection" "Amazonka.CloudFront.Types.ResponseHeadersPolicyXSSProtection" "amazonka-cloudfront-2.0-8Jb7luniAuUfLdUxCxW4K" 'False) (C1 ('MetaCons "ResponseHeadersPolicyXSSProtection'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "modeBlock") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "reportUri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "override") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "protection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))

newResponseHeadersPolicyXSSProtection Source #

Create a value of ResponseHeadersPolicyXSSProtection 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:modeBlock:ResponseHeadersPolicyXSSProtection', responseHeadersPolicyXSSProtection_modeBlock - A Boolean that determines whether CloudFront includes the mode=block directive in the X-XSS-Protection header.

For more information about this directive, see X-XSS-Protection in the MDN Web Docs.

$sel:reportUri:ResponseHeadersPolicyXSSProtection', responseHeadersPolicyXSSProtection_reportUri - A reporting URI, which CloudFront uses as the value of the report directive in the X-XSS-Protection header.

You cannot specify a ReportUri when ModeBlock is true.

For more information about using a reporting URL, see X-XSS-Protection in the MDN Web Docs.

$sel:override:ResponseHeadersPolicyXSSProtection', responseHeadersPolicyXSSProtection_override - A Boolean that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.

$sel:protection:ResponseHeadersPolicyXSSProtection', responseHeadersPolicyXSSProtection_protection - A Boolean that determines the value of the X-XSS-Protection HTTP response header. When this setting is true, the value of the X-XSS-Protection header is 1. When this setting is false, the value of the X-XSS-Protection header is 0.

For more information about these settings, see X-XSS-Protection in the MDN Web Docs.

responseHeadersPolicyXSSProtection_modeBlock :: Lens' ResponseHeadersPolicyXSSProtection (Maybe Bool) Source #

A Boolean that determines whether CloudFront includes the mode=block directive in the X-XSS-Protection header.

For more information about this directive, see X-XSS-Protection in the MDN Web Docs.

responseHeadersPolicyXSSProtection_reportUri :: Lens' ResponseHeadersPolicyXSSProtection (Maybe Text) Source #

A reporting URI, which CloudFront uses as the value of the report directive in the X-XSS-Protection header.

You cannot specify a ReportUri when ModeBlock is true.

For more information about using a reporting URL, see X-XSS-Protection in the MDN Web Docs.

responseHeadersPolicyXSSProtection_override :: Lens' ResponseHeadersPolicyXSSProtection Bool Source #

A Boolean that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.

responseHeadersPolicyXSSProtection_protection :: Lens' ResponseHeadersPolicyXSSProtection Bool Source #

A Boolean that determines the value of the X-XSS-Protection HTTP response header. When this setting is true, the value of the X-XSS-Protection header is 1. When this setting is false, the value of the X-XSS-Protection header is 0.

For more information about these settings, see X-XSS-Protection in the MDN Web Docs.