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 ResponseHeadersPolicy = ResponseHeadersPolicy' {}
- newResponseHeadersPolicy :: Text -> UTCTime -> ResponseHeadersPolicyConfig -> ResponseHeadersPolicy
- responseHeadersPolicy_id :: Lens' ResponseHeadersPolicy Text
- responseHeadersPolicy_lastModifiedTime :: Lens' ResponseHeadersPolicy UTCTime
- responseHeadersPolicy_responseHeadersPolicyConfig :: Lens' ResponseHeadersPolicy ResponseHeadersPolicyConfig
Documentation
data ResponseHeadersPolicy Source #
A response headers policy.
A response headers policy contains information about a set of HTTP response headers.
After you create a response headers policy, you can use its ID to attach it to one or more cache behaviors in a CloudFront distribution. When it's attached to a cache behavior, the response headers policy affects the HTTP headers that CloudFront includes in HTTP responses to requests that match the cache behavior. CloudFront adds or removes response headers according to the configuration of the response headers policy.
For more information, see Adding or removing HTTP headers in CloudFront responses in the Amazon CloudFront Developer Guide.
See: newResponseHeadersPolicy
smart constructor.
ResponseHeadersPolicy' | |
|
Instances
newResponseHeadersPolicy Source #
Create a value of ResponseHeadersPolicy
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:id:ResponseHeadersPolicy'
, responseHeadersPolicy_id
- The identifier for the response headers policy.
$sel:lastModifiedTime:ResponseHeadersPolicy'
, responseHeadersPolicy_lastModifiedTime
- The date and time when the response headers policy was last modified.
$sel:responseHeadersPolicyConfig:ResponseHeadersPolicy'
, responseHeadersPolicy_responseHeadersPolicyConfig
- A response headers policy configuration.
responseHeadersPolicy_id :: Lens' ResponseHeadersPolicy Text Source #
The identifier for the response headers policy.
responseHeadersPolicy_lastModifiedTime :: Lens' ResponseHeadersPolicy UTCTime Source #
The date and time when the response headers policy was last modified.
responseHeadersPolicy_responseHeadersPolicyConfig :: Lens' ResponseHeadersPolicy ResponseHeadersPolicyConfig Source #
A response headers policy configuration.