| 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.GetResponseHeadersPolicy
Description
Gets a response headers policy, including metadata (the policy's identifier and the date and time when the policy was last modified).
To get a response headers policy, you must provide the policy's
identifier. If the response headers policy is attached to a
distribution's cache behavior, you can get the policy's identifier
using ListDistributions or GetDistribution. If the response headers
policy is not attached to a cache behavior, you can get the identifier
using ListResponseHeadersPolicies.
Synopsis
- data GetResponseHeadersPolicy = GetResponseHeadersPolicy' {}
- newGetResponseHeadersPolicy :: Text -> GetResponseHeadersPolicy
- getResponseHeadersPolicy_id :: Lens' GetResponseHeadersPolicy Text
- data GetResponseHeadersPolicyResponse = GetResponseHeadersPolicyResponse' {}
- newGetResponseHeadersPolicyResponse :: Int -> GetResponseHeadersPolicyResponse
- getResponseHeadersPolicyResponse_eTag :: Lens' GetResponseHeadersPolicyResponse (Maybe Text)
- getResponseHeadersPolicyResponse_responseHeadersPolicy :: Lens' GetResponseHeadersPolicyResponse (Maybe ResponseHeadersPolicy)
- getResponseHeadersPolicyResponse_httpStatus :: Lens' GetResponseHeadersPolicyResponse Int
Creating a Request
data GetResponseHeadersPolicy Source #
See: newGetResponseHeadersPolicy smart constructor.
Constructors
| GetResponseHeadersPolicy' | |
Fields
| |
Instances
newGetResponseHeadersPolicy Source #
Arguments
| :: Text | |
| -> GetResponseHeadersPolicy |
Create a value of GetResponseHeadersPolicy 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:
GetResponseHeadersPolicy, getResponseHeadersPolicy_id - The identifier for the response headers policy.
If the response headers policy is attached to a distribution's cache
behavior, you can get the policy's identifier using ListDistributions
or GetDistribution. If the response headers policy is not attached to
a cache behavior, you can get the identifier using
ListResponseHeadersPolicies.
Request Lenses
getResponseHeadersPolicy_id :: Lens' GetResponseHeadersPolicy Text Source #
The identifier for the response headers policy.
If the response headers policy is attached to a distribution's cache
behavior, you can get the policy's identifier using ListDistributions
or GetDistribution. If the response headers policy is not attached to
a cache behavior, you can get the identifier using
ListResponseHeadersPolicies.
Destructuring the Response
data GetResponseHeadersPolicyResponse Source #
See: newGetResponseHeadersPolicyResponse smart constructor.
Constructors
| GetResponseHeadersPolicyResponse' | |
Fields
| |
Instances
newGetResponseHeadersPolicyResponse Source #
Create a value of GetResponseHeadersPolicyResponse 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:GetResponseHeadersPolicyResponse', getResponseHeadersPolicyResponse_eTag - The version identifier for the current version of the response headers
policy.
GetResponseHeadersPolicyResponse, getResponseHeadersPolicyResponse_responseHeadersPolicy - Contains a response headers policy.
$sel:httpStatus:GetResponseHeadersPolicyResponse', getResponseHeadersPolicyResponse_httpStatus - The response's http status code.
Response Lenses
getResponseHeadersPolicyResponse_eTag :: Lens' GetResponseHeadersPolicyResponse (Maybe Text) Source #
The version identifier for the current version of the response headers policy.
getResponseHeadersPolicyResponse_responseHeadersPolicy :: Lens' GetResponseHeadersPolicyResponse (Maybe ResponseHeadersPolicy) Source #
Contains a response headers policy.
getResponseHeadersPolicyResponse_httpStatus :: Lens' GetResponseHeadersPolicyResponse Int Source #
The response's http status code.