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 |
Creates a response headers policy.
A response headers policy contains information about a set of HTTP headers. To create a response headers policy, you provide some metadata about the policy and a set of configurations that specify the 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.
Synopsis
- data CreateResponseHeadersPolicy = CreateResponseHeadersPolicy' {}
- newCreateResponseHeadersPolicy :: ResponseHeadersPolicyConfig -> CreateResponseHeadersPolicy
- createResponseHeadersPolicy_responseHeadersPolicyConfig :: Lens' CreateResponseHeadersPolicy ResponseHeadersPolicyConfig
- data CreateResponseHeadersPolicyResponse = CreateResponseHeadersPolicyResponse' {}
- newCreateResponseHeadersPolicyResponse :: Int -> CreateResponseHeadersPolicyResponse
- createResponseHeadersPolicyResponse_eTag :: Lens' CreateResponseHeadersPolicyResponse (Maybe Text)
- createResponseHeadersPolicyResponse_location :: Lens' CreateResponseHeadersPolicyResponse (Maybe Text)
- createResponseHeadersPolicyResponse_responseHeadersPolicy :: Lens' CreateResponseHeadersPolicyResponse (Maybe ResponseHeadersPolicy)
- createResponseHeadersPolicyResponse_httpStatus :: Lens' CreateResponseHeadersPolicyResponse Int
Creating a Request
data CreateResponseHeadersPolicy Source #
See: newCreateResponseHeadersPolicy
smart constructor.
CreateResponseHeadersPolicy' | |
|
Instances
newCreateResponseHeadersPolicy Source #
Create a value of CreateResponseHeadersPolicy
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:
CreateResponseHeadersPolicy
, createResponseHeadersPolicy_responseHeadersPolicyConfig
- Contains metadata about the response headers policy, and a set of
configurations that specify the HTTP headers.
Request Lenses
createResponseHeadersPolicy_responseHeadersPolicyConfig :: Lens' CreateResponseHeadersPolicy ResponseHeadersPolicyConfig Source #
Contains metadata about the response headers policy, and a set of configurations that specify the HTTP headers.
Destructuring the Response
data CreateResponseHeadersPolicyResponse Source #
See: newCreateResponseHeadersPolicyResponse
smart constructor.
CreateResponseHeadersPolicyResponse' | |
|
Instances
newCreateResponseHeadersPolicyResponse Source #
Create a value of CreateResponseHeadersPolicyResponse
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:eTag:CreateResponseHeadersPolicyResponse'
, createResponseHeadersPolicyResponse_eTag
- The version identifier for the current version of the response headers
policy.
$sel:location:CreateResponseHeadersPolicyResponse'
, createResponseHeadersPolicyResponse_location
- The URL of the response headers policy.
CreateResponseHeadersPolicyResponse
, createResponseHeadersPolicyResponse_responseHeadersPolicy
- Contains a response headers policy.
$sel:httpStatus:CreateResponseHeadersPolicyResponse'
, createResponseHeadersPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
createResponseHeadersPolicyResponse_eTag :: Lens' CreateResponseHeadersPolicyResponse (Maybe Text) Source #
The version identifier for the current version of the response headers policy.
createResponseHeadersPolicyResponse_location :: Lens' CreateResponseHeadersPolicyResponse (Maybe Text) Source #
The URL of the response headers policy.
createResponseHeadersPolicyResponse_responseHeadersPolicy :: Lens' CreateResponseHeadersPolicyResponse (Maybe ResponseHeadersPolicy) Source #
Contains a response headers policy.
createResponseHeadersPolicyResponse_httpStatus :: Lens' CreateResponseHeadersPolicyResponse Int Source #
The response's http status code.