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 configuration.
To get a cache policy configuration, 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 GetCachePolicyConfig = GetCachePolicyConfig' {}
- newGetCachePolicyConfig :: Text -> GetCachePolicyConfig
- getCachePolicyConfig_id :: Lens' GetCachePolicyConfig Text
- data GetCachePolicyConfigResponse = GetCachePolicyConfigResponse' {}
- newGetCachePolicyConfigResponse :: Int -> GetCachePolicyConfigResponse
- getCachePolicyConfigResponse_eTag :: Lens' GetCachePolicyConfigResponse (Maybe Text)
- getCachePolicyConfigResponse_cachePolicyConfig :: Lens' GetCachePolicyConfigResponse (Maybe CachePolicyConfig)
- getCachePolicyConfigResponse_httpStatus :: Lens' GetCachePolicyConfigResponse Int
Creating a Request
data GetCachePolicyConfig Source #
See: newGetCachePolicyConfig
smart constructor.
GetCachePolicyConfig' | |
|
Instances
newGetCachePolicyConfig Source #
Create a value of GetCachePolicyConfig
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:GetCachePolicyConfig'
, getCachePolicyConfig_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
getCachePolicyConfig_id :: Lens' GetCachePolicyConfig 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 GetCachePolicyConfigResponse Source #
See: newGetCachePolicyConfigResponse
smart constructor.
GetCachePolicyConfigResponse' | |
|
Instances
newGetCachePolicyConfigResponse Source #
Create a value of GetCachePolicyConfigResponse
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:GetCachePolicyConfigResponse'
, getCachePolicyConfigResponse_eTag
- The current version of the cache policy.
$sel:cachePolicyConfig:GetCachePolicyConfigResponse'
, getCachePolicyConfigResponse_cachePolicyConfig
- The cache policy configuration.
$sel:httpStatus:GetCachePolicyConfigResponse'
, getCachePolicyConfigResponse_httpStatus
- The response's http status code.
Response Lenses
getCachePolicyConfigResponse_eTag :: Lens' GetCachePolicyConfigResponse (Maybe Text) Source #
The current version of the cache policy.
getCachePolicyConfigResponse_cachePolicyConfig :: Lens' GetCachePolicyConfigResponse (Maybe CachePolicyConfig) Source #
The cache policy configuration.
getCachePolicyConfigResponse_httpStatus :: Lens' GetCachePolicyConfigResponse Int Source #
The response's http status code.