| 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 |
Amazonka.CloudFront.Types.ResponseHeadersPolicyContentSecurityPolicy
Description
Synopsis
- data ResponseHeadersPolicyContentSecurityPolicy = ResponseHeadersPolicyContentSecurityPolicy' {}
- newResponseHeadersPolicyContentSecurityPolicy :: Bool -> Text -> ResponseHeadersPolicyContentSecurityPolicy
- responseHeadersPolicyContentSecurityPolicy_override :: Lens' ResponseHeadersPolicyContentSecurityPolicy Bool
- responseHeadersPolicyContentSecurityPolicy_contentSecurityPolicy :: Lens' ResponseHeadersPolicyContentSecurityPolicy Text
Documentation
data 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.
See: newResponseHeadersPolicyContentSecurityPolicy smart constructor.
Constructors
| ResponseHeadersPolicyContentSecurityPolicy' | |
Fields
| |
Instances
newResponseHeadersPolicyContentSecurityPolicy Source #
Arguments
| :: Bool | |
| -> Text |
|
| -> ResponseHeadersPolicyContentSecurityPolicy |
Create a value of ResponseHeadersPolicyContentSecurityPolicy 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:ResponseHeadersPolicyContentSecurityPolicy', responseHeadersPolicyContentSecurityPolicy_override - A Boolean that determines whether CloudFront overrides the
Content-Security-Policy HTTP response header received from the origin
with the one specified in this response headers policy.
$sel:contentSecurityPolicy:ResponseHeadersPolicyContentSecurityPolicy', responseHeadersPolicyContentSecurityPolicy_contentSecurityPolicy - The policy directives and their values that CloudFront includes as
values for the Content-Security-Policy HTTP response header.
responseHeadersPolicyContentSecurityPolicy_override :: Lens' ResponseHeadersPolicyContentSecurityPolicy Bool Source #
A Boolean that determines whether CloudFront overrides the
Content-Security-Policy HTTP response header received from the origin
with the one specified in this response headers policy.
responseHeadersPolicyContentSecurityPolicy_contentSecurityPolicy :: Lens' ResponseHeadersPolicyContentSecurityPolicy Text Source #
The policy directives and their values that CloudFront includes as
values for the Content-Security-Policy HTTP response header.