| 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.GetResponseHeadersPolicyConfig
Description
Gets a response headers policy configuration.
To get a response headers policy configuration, 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 GetResponseHeadersPolicyConfig = GetResponseHeadersPolicyConfig' {}
- newGetResponseHeadersPolicyConfig :: Text -> GetResponseHeadersPolicyConfig
- getResponseHeadersPolicyConfig_id :: Lens' GetResponseHeadersPolicyConfig Text
- data GetResponseHeadersPolicyConfigResponse = GetResponseHeadersPolicyConfigResponse' {}
- newGetResponseHeadersPolicyConfigResponse :: Int -> GetResponseHeadersPolicyConfigResponse
- getResponseHeadersPolicyConfigResponse_eTag :: Lens' GetResponseHeadersPolicyConfigResponse (Maybe Text)
- getResponseHeadersPolicyConfigResponse_responseHeadersPolicyConfig :: Lens' GetResponseHeadersPolicyConfigResponse (Maybe ResponseHeadersPolicyConfig)
- getResponseHeadersPolicyConfigResponse_httpStatus :: Lens' GetResponseHeadersPolicyConfigResponse Int
Creating a Request
data GetResponseHeadersPolicyConfig Source #
See: newGetResponseHeadersPolicyConfig smart constructor.
Constructors
| GetResponseHeadersPolicyConfig' | |
Fields
| |
Instances
newGetResponseHeadersPolicyConfig Source #
Create a value of GetResponseHeadersPolicyConfig 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:
GetResponseHeadersPolicyConfig, getResponseHeadersPolicyConfig_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
getResponseHeadersPolicyConfig_id :: Lens' GetResponseHeadersPolicyConfig 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 GetResponseHeadersPolicyConfigResponse Source #
See: newGetResponseHeadersPolicyConfigResponse smart constructor.
Constructors
| GetResponseHeadersPolicyConfigResponse' | |
Fields
| |
Instances
newGetResponseHeadersPolicyConfigResponse Source #
Arguments
| :: Int | |
| -> GetResponseHeadersPolicyConfigResponse |
Create a value of GetResponseHeadersPolicyConfigResponse 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:GetResponseHeadersPolicyConfigResponse', getResponseHeadersPolicyConfigResponse_eTag - The version identifier for the current version of the response headers
policy.
GetResponseHeadersPolicyConfigResponse, getResponseHeadersPolicyConfigResponse_responseHeadersPolicyConfig - Contains a response headers policy.
$sel:httpStatus:GetResponseHeadersPolicyConfigResponse', getResponseHeadersPolicyConfigResponse_httpStatus - The response's http status code.
Response Lenses
getResponseHeadersPolicyConfigResponse_eTag :: Lens' GetResponseHeadersPolicyConfigResponse (Maybe Text) Source #
The version identifier for the current version of the response headers policy.
getResponseHeadersPolicyConfigResponse_responseHeadersPolicyConfig :: Lens' GetResponseHeadersPolicyConfigResponse (Maybe ResponseHeadersPolicyConfig) Source #
Contains a response headers policy.
getResponseHeadersPolicyConfigResponse_httpStatus :: Lens' GetResponseHeadersPolicyConfigResponse Int Source #
The response's http status code.