Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Gets a cache policy, including the following metadata:
- The policy’s identifier.
- The date and time when the policy was last modified.
To get a cache policy, you must provide the policy’s identifier. If the
cache policy is attached to a distribution’s cache behavior, you can get
the policy’s identifier using ListDistributions
or GetDistribution
.
If the cache policy is not attached to a cache behavior, you can get the
identifier using ListCachePolicies
.
Synopsis
- data GetCachePolicy = GetCachePolicy' {}
- newGetCachePolicy :: Text -> GetCachePolicy
- getCachePolicy_id :: Lens' GetCachePolicy Text
- data GetCachePolicyResponse = GetCachePolicyResponse' {
- cachePolicy :: Maybe CachePolicy
- eTag :: Maybe Text
- httpStatus :: Int
- newGetCachePolicyResponse :: Int -> GetCachePolicyResponse
- getCachePolicyResponse_cachePolicy :: Lens' GetCachePolicyResponse (Maybe CachePolicy)
- getCachePolicyResponse_eTag :: Lens' GetCachePolicyResponse (Maybe Text)
- getCachePolicyResponse_httpStatus :: Lens' GetCachePolicyResponse Int
Creating a Request
data GetCachePolicy Source #
See: newGetCachePolicy
smart constructor.
GetCachePolicy' | |
|
Instances
Create a value of GetCachePolicy
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:GetCachePolicy'
, getCachePolicy_id
- The unique identifier for the cache policy. If the cache policy is
attached to a distribution’s cache behavior, you can get the policy’s
identifier using ListDistributions
or GetDistribution
. If the cache
policy is not attached to a cache behavior, you can get the identifier
using ListCachePolicies
.
Request Lenses
getCachePolicy_id :: Lens' GetCachePolicy Text Source #
The unique identifier for the cache policy. If the cache policy is
attached to a distribution’s cache behavior, you can get the policy’s
identifier using ListDistributions
or GetDistribution
. If the cache
policy is not attached to a cache behavior, you can get the identifier
using ListCachePolicies
.
Destructuring the Response
data GetCachePolicyResponse Source #
See: newGetCachePolicyResponse
smart constructor.
GetCachePolicyResponse' | |
|
Instances
newGetCachePolicyResponse Source #
Create a value of GetCachePolicyResponse
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:cachePolicy:GetCachePolicyResponse'
, getCachePolicyResponse_cachePolicy
- The cache policy.
$sel:eTag:GetCachePolicyResponse'
, getCachePolicyResponse_eTag
- The current version of the cache policy.
$sel:httpStatus:GetCachePolicyResponse'
, getCachePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
getCachePolicyResponse_cachePolicy :: Lens' GetCachePolicyResponse (Maybe CachePolicy) Source #
The cache policy.
getCachePolicyResponse_eTag :: Lens' GetCachePolicyResponse (Maybe Text) Source #
The current version of the cache policy.
getCachePolicyResponse_httpStatus :: Lens' GetCachePolicyResponse Int Source #
The response's http status code.