Gets a cache policy, including the following metadata:
The policy<U+2019>s identifier.
The date and time when the policy was last modified.
To get a cache policy, you must provide the policy<U+2019>s identifier. If the
cache policy is attached to a distribution<U+2019>s cache behavior, you can get
the policy<U+2019>s identifier using ListDistributions
or GetDistribution
.
If the cache policy is not attached to a cache behavior, you can get the
identifier using ListCachePolicies
.
cloudfront_get_cache_policy(Id)
[required] The unique identifier for the cache policy. If the cache policy is
attached to a distribution<U+2019>s cache behavior, you can get the policy<U+2019>s
identifier using ListDistributions
or GetDistribution
. If the cache
policy is not attached to a cache behavior, you can get the identifier
using ListCachePolicies
.
svc$get_cache_policy( Id = "string" )