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 ResponseHeadersPolicySecurityHeadersConfig = ResponseHeadersPolicySecurityHeadersConfig' {
- contentSecurityPolicy :: Maybe ResponseHeadersPolicyContentSecurityPolicy
- contentTypeOptions :: Maybe ResponseHeadersPolicyContentTypeOptions
- frameOptions :: Maybe ResponseHeadersPolicyFrameOptions
- referrerPolicy :: Maybe ResponseHeadersPolicyReferrerPolicy
- strictTransportSecurity :: Maybe ResponseHeadersPolicyStrictTransportSecurity
- xSSProtection :: Maybe ResponseHeadersPolicyXSSProtection
- newResponseHeadersPolicySecurityHeadersConfig :: ResponseHeadersPolicySecurityHeadersConfig
- responseHeadersPolicySecurityHeadersConfig_contentSecurityPolicy :: Lens' ResponseHeadersPolicySecurityHeadersConfig (Maybe ResponseHeadersPolicyContentSecurityPolicy)
- responseHeadersPolicySecurityHeadersConfig_contentTypeOptions :: Lens' ResponseHeadersPolicySecurityHeadersConfig (Maybe ResponseHeadersPolicyContentTypeOptions)
- responseHeadersPolicySecurityHeadersConfig_frameOptions :: Lens' ResponseHeadersPolicySecurityHeadersConfig (Maybe ResponseHeadersPolicyFrameOptions)
- responseHeadersPolicySecurityHeadersConfig_referrerPolicy :: Lens' ResponseHeadersPolicySecurityHeadersConfig (Maybe ResponseHeadersPolicyReferrerPolicy)
- responseHeadersPolicySecurityHeadersConfig_strictTransportSecurity :: Lens' ResponseHeadersPolicySecurityHeadersConfig (Maybe ResponseHeadersPolicyStrictTransportSecurity)
- responseHeadersPolicySecurityHeadersConfig_xSSProtection :: Lens' ResponseHeadersPolicySecurityHeadersConfig (Maybe ResponseHeadersPolicyXSSProtection)
Documentation
data ResponseHeadersPolicySecurityHeadersConfig Source #
A configuration for a set of security-related HTTP response headers. CloudFront adds these headers to HTTP responses that it sends for requests that match a cache behavior associated with this response headers policy.
See: newResponseHeadersPolicySecurityHeadersConfig
smart constructor.
ResponseHeadersPolicySecurityHeadersConfig' | |
|
Instances
newResponseHeadersPolicySecurityHeadersConfig :: ResponseHeadersPolicySecurityHeadersConfig Source #
Create a value of ResponseHeadersPolicySecurityHeadersConfig
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:
ResponseHeadersPolicySecurityHeadersConfig
, responseHeadersPolicySecurityHeadersConfig_contentSecurityPolicy
- The policy directives and their values that CloudFront includes as
values for the Content-Security-Policy
HTTP response header.
For more information about the Content-Security-Policy
HTTP response
header, see
Content-Security-Policy
in the MDN Web Docs.
$sel:contentTypeOptions:ResponseHeadersPolicySecurityHeadersConfig'
, responseHeadersPolicySecurityHeadersConfig_contentTypeOptions
- Determines whether CloudFront includes the X-Content-Type-Options
HTTP
response header with its value set to nosniff
.
For more information about the X-Content-Type-Options
HTTP response
header, see
X-Content-Type-Options
in the MDN Web Docs.
$sel:frameOptions:ResponseHeadersPolicySecurityHeadersConfig'
, responseHeadersPolicySecurityHeadersConfig_frameOptions
- Determines whether CloudFront includes the X-Frame-Options
HTTP
response header and the header's value.
For more information about the X-Frame-Options
HTTP response header,
see
X-Frame-Options
in the MDN Web Docs.
ResponseHeadersPolicySecurityHeadersConfig
, responseHeadersPolicySecurityHeadersConfig_referrerPolicy
- 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.
$sel:strictTransportSecurity:ResponseHeadersPolicySecurityHeadersConfig'
, responseHeadersPolicySecurityHeadersConfig_strictTransportSecurity
- Determines whether CloudFront includes the Strict-Transport-Security
HTTP response header and the header's value.
For more information about the Strict-Transport-Security
HTTP response
header, see
Strict-Transport-Security
in the MDN Web Docs.
$sel:xSSProtection:ResponseHeadersPolicySecurityHeadersConfig'
, responseHeadersPolicySecurityHeadersConfig_xSSProtection
- 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.
responseHeadersPolicySecurityHeadersConfig_contentSecurityPolicy :: Lens' ResponseHeadersPolicySecurityHeadersConfig (Maybe ResponseHeadersPolicyContentSecurityPolicy) Source #
The policy directives and their values that CloudFront includes as
values for the Content-Security-Policy
HTTP response header.
For more information about the Content-Security-Policy
HTTP response
header, see
Content-Security-Policy
in the MDN Web Docs.
responseHeadersPolicySecurityHeadersConfig_contentTypeOptions :: Lens' ResponseHeadersPolicySecurityHeadersConfig (Maybe ResponseHeadersPolicyContentTypeOptions) Source #
Determines whether CloudFront includes the X-Content-Type-Options
HTTP
response header with its value set to nosniff
.
For more information about the X-Content-Type-Options
HTTP response
header, see
X-Content-Type-Options
in the MDN Web Docs.
responseHeadersPolicySecurityHeadersConfig_frameOptions :: Lens' ResponseHeadersPolicySecurityHeadersConfig (Maybe ResponseHeadersPolicyFrameOptions) Source #
Determines whether CloudFront includes the X-Frame-Options
HTTP
response header and the header's value.
For more information about the X-Frame-Options
HTTP response header,
see
X-Frame-Options
in the MDN Web Docs.
responseHeadersPolicySecurityHeadersConfig_referrerPolicy :: Lens' ResponseHeadersPolicySecurityHeadersConfig (Maybe 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.
responseHeadersPolicySecurityHeadersConfig_strictTransportSecurity :: Lens' ResponseHeadersPolicySecurityHeadersConfig (Maybe ResponseHeadersPolicyStrictTransportSecurity) Source #
Determines whether CloudFront includes the Strict-Transport-Security
HTTP response header and the header's value.
For more information about the Strict-Transport-Security
HTTP response
header, see
Strict-Transport-Security
in the MDN Web Docs.
responseHeadersPolicySecurityHeadersConfig_xSSProtection :: Lens' ResponseHeadersPolicySecurityHeadersConfig (Maybe 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.