Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data ResponseHeadersPolicyCorsConfig = ResponseHeadersPolicyCorsConfig' {
- accessControlExposeHeaders :: Maybe ResponseHeadersPolicyAccessControlExposeHeaders
- accessControlMaxAgeSec :: Maybe Int
- accessControlAllowOrigins :: ResponseHeadersPolicyAccessControlAllowOrigins
- accessControlAllowHeaders :: ResponseHeadersPolicyAccessControlAllowHeaders
- accessControlAllowMethods :: ResponseHeadersPolicyAccessControlAllowMethods
- accessControlAllowCredentials :: Bool
- originOverride :: Bool
- newResponseHeadersPolicyCorsConfig :: ResponseHeadersPolicyAccessControlAllowOrigins -> ResponseHeadersPolicyAccessControlAllowHeaders -> ResponseHeadersPolicyAccessControlAllowMethods -> Bool -> Bool -> ResponseHeadersPolicyCorsConfig
- responseHeadersPolicyCorsConfig_accessControlExposeHeaders :: Lens' ResponseHeadersPolicyCorsConfig (Maybe ResponseHeadersPolicyAccessControlExposeHeaders)
- responseHeadersPolicyCorsConfig_accessControlMaxAgeSec :: Lens' ResponseHeadersPolicyCorsConfig (Maybe Int)
- responseHeadersPolicyCorsConfig_accessControlAllowOrigins :: Lens' ResponseHeadersPolicyCorsConfig ResponseHeadersPolicyAccessControlAllowOrigins
- responseHeadersPolicyCorsConfig_accessControlAllowHeaders :: Lens' ResponseHeadersPolicyCorsConfig ResponseHeadersPolicyAccessControlAllowHeaders
- responseHeadersPolicyCorsConfig_accessControlAllowMethods :: Lens' ResponseHeadersPolicyCorsConfig ResponseHeadersPolicyAccessControlAllowMethods
- responseHeadersPolicyCorsConfig_accessControlAllowCredentials :: Lens' ResponseHeadersPolicyCorsConfig Bool
- responseHeadersPolicyCorsConfig_originOverride :: Lens' ResponseHeadersPolicyCorsConfig Bool
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.
ResponseHeadersPolicyCorsConfig' | |
|
Instances
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.