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

Description

 
Synopsis

Documentation

data ResponseHeadersPolicyCorsConfig Source #

A configuration for a set of HTTP response headers that are used for cross-origin resource sharing (CORS). CloudFront adds these headers to HTTP responses that it sends for CORS requests that match a cache behavior associated with this response headers policy.

For more information about CORS, see Cross-Origin Resource Sharing (CORS) in the MDN Web Docs.

See: newResponseHeadersPolicyCorsConfig smart constructor.

Constructors

ResponseHeadersPolicyCorsConfig' 

Fields

Instances

Instances details
FromXML ResponseHeadersPolicyCorsConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyCorsConfig

ToXML ResponseHeadersPolicyCorsConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyCorsConfig

Generic ResponseHeadersPolicyCorsConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyCorsConfig

Associated Types

type Rep ResponseHeadersPolicyCorsConfig :: Type -> Type #

Read ResponseHeadersPolicyCorsConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyCorsConfig

Show ResponseHeadersPolicyCorsConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyCorsConfig

NFData ResponseHeadersPolicyCorsConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyCorsConfig

Eq ResponseHeadersPolicyCorsConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyCorsConfig

Hashable ResponseHeadersPolicyCorsConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyCorsConfig

type Rep ResponseHeadersPolicyCorsConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.ResponseHeadersPolicyCorsConfig

type Rep ResponseHeadersPolicyCorsConfig = D1 ('MetaData "ResponseHeadersPolicyCorsConfig" "Amazonka.CloudFront.Types.ResponseHeadersPolicyCorsConfig" "amazonka-cloudfront-2.0-8Jb7luniAuUfLdUxCxW4K" 'False) (C1 ('MetaCons "ResponseHeadersPolicyCorsConfig'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "accessControlExposeHeaders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResponseHeadersPolicyAccessControlExposeHeaders)) :*: (S1 ('MetaSel ('Just "accessControlMaxAgeSec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "accessControlAllowOrigins") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResponseHeadersPolicyAccessControlAllowOrigins))) :*: ((S1 ('MetaSel ('Just "accessControlAllowHeaders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResponseHeadersPolicyAccessControlAllowHeaders) :*: S1 ('MetaSel ('Just "accessControlAllowMethods") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResponseHeadersPolicyAccessControlAllowMethods)) :*: (S1 ('MetaSel ('Just "accessControlAllowCredentials") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "originOverride") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))))

newResponseHeadersPolicyCorsConfig Source #

Create a value of ResponseHeadersPolicyCorsConfig 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:accessControlExposeHeaders:ResponseHeadersPolicyCorsConfig', responseHeadersPolicyCorsConfig_accessControlExposeHeaders - A list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers HTTP response header.

For more information about the Access-Control-Expose-Headers HTTP response header, see Access-Control-Expose-Headers in the MDN Web Docs.

$sel:accessControlMaxAgeSec:ResponseHeadersPolicyCorsConfig', responseHeadersPolicyCorsConfig_accessControlMaxAgeSec - A number that CloudFront uses as the value for the Access-Control-Max-Age HTTP response header.

For more information about the Access-Control-Max-Age HTTP response header, see Access-Control-Max-Age in the MDN Web Docs.

$sel:accessControlAllowOrigins:ResponseHeadersPolicyCorsConfig', responseHeadersPolicyCorsConfig_accessControlAllowOrigins - A list of origins (domain names) that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header.

For more information about the Access-Control-Allow-Origin HTTP response header, see Access-Control-Allow-Origin in the MDN Web Docs.

$sel:accessControlAllowHeaders:ResponseHeadersPolicyCorsConfig', responseHeadersPolicyCorsConfig_accessControlAllowHeaders - A list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers HTTP response header.

For more information about the Access-Control-Allow-Headers HTTP response header, see Access-Control-Allow-Headers in the MDN Web Docs.

$sel:accessControlAllowMethods:ResponseHeadersPolicyCorsConfig', responseHeadersPolicyCorsConfig_accessControlAllowMethods - A list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods HTTP response header.

For more information about the Access-Control-Allow-Methods HTTP response header, see Access-Control-Allow-Methods in the MDN Web Docs.

$sel:accessControlAllowCredentials:ResponseHeadersPolicyCorsConfig', responseHeadersPolicyCorsConfig_accessControlAllowCredentials - A Boolean that CloudFront uses as the value for the Access-Control-Allow-Credentials HTTP response header.

For more information about the Access-Control-Allow-Credentials HTTP response header, see Access-Control-Allow-Credentials in the MDN Web Docs.

$sel:originOverride:ResponseHeadersPolicyCorsConfig', responseHeadersPolicyCorsConfig_originOverride - A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin with the ones specified in this response headers policy.

responseHeadersPolicyCorsConfig_accessControlExposeHeaders :: Lens' ResponseHeadersPolicyCorsConfig (Maybe ResponseHeadersPolicyAccessControlExposeHeaders) Source #

A list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers HTTP response header.

For more information about the Access-Control-Expose-Headers HTTP response header, see Access-Control-Expose-Headers in the MDN Web Docs.

responseHeadersPolicyCorsConfig_accessControlMaxAgeSec :: Lens' ResponseHeadersPolicyCorsConfig (Maybe Int) Source #

A number that CloudFront uses as the value for the Access-Control-Max-Age HTTP response header.

For more information about the Access-Control-Max-Age HTTP response header, see Access-Control-Max-Age in the MDN Web Docs.

responseHeadersPolicyCorsConfig_accessControlAllowOrigins :: Lens' ResponseHeadersPolicyCorsConfig ResponseHeadersPolicyAccessControlAllowOrigins Source #

A list of origins (domain names) that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header.

For more information about the Access-Control-Allow-Origin HTTP response header, see Access-Control-Allow-Origin in the MDN Web Docs.

responseHeadersPolicyCorsConfig_accessControlAllowHeaders :: Lens' ResponseHeadersPolicyCorsConfig ResponseHeadersPolicyAccessControlAllowHeaders Source #

A list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers HTTP response header.

For more information about the Access-Control-Allow-Headers HTTP response header, see Access-Control-Allow-Headers in the MDN Web Docs.

responseHeadersPolicyCorsConfig_accessControlAllowMethods :: Lens' ResponseHeadersPolicyCorsConfig ResponseHeadersPolicyAccessControlAllowMethods Source #

A list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods HTTP response header.

For more information about the Access-Control-Allow-Methods HTTP response header, see Access-Control-Allow-Methods in the MDN Web Docs.

responseHeadersPolicyCorsConfig_accessControlAllowCredentials :: Lens' ResponseHeadersPolicyCorsConfig Bool Source #

A Boolean that CloudFront uses as the value for the Access-Control-Allow-Credentials HTTP response header.

For more information about the Access-Control-Allow-Credentials HTTP response header, see Access-Control-Allow-Credentials in the MDN Web Docs.

responseHeadersPolicyCorsConfig_originOverride :: Lens' ResponseHeadersPolicyCorsConfig Bool Source #

A Boolean that determines whether CloudFront overrides HTTP response headers received from the origin with the ones specified in this response headers policy.