@Override
    public GetCachePolicyResult getCachePolicy(GetCachePolicyRequest request) {
        request = beforeClientExecution(request);
        return executeGetCachePolicy(request);
    }
<p>
Gets a cache policy, including the following metadata:
</p>
<ul>
<li>
<p>
The policy's identifier.
</p>
</li>
<li>
<p>
The date and time when the policy was last modified.
</p>
</li>
</ul>
<p>
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 <code>ListDistributions</code> or
<code>GetDistribution</code>. If the cache policy is not attached to a cache behavior, you can get the identifier
using <code>ListCachePolicies</code>.
</p>

@param getCachePolicyRequest
@return Result of the GetCachePolicy operation returned by the service.
@throws AccessDeniedException
        Access denied.
@throws NoSuchCachePolicyException
        The cache policy does not exist.
@sample AmazonCloudFront.GetCachePolicy
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCachePolicy" target="_top">AWS API
     Documentation</a>
aws-java-sdk-cloudfront/src/main/java/com/amazonaws/services/cloudfront/AmazonCloudFrontClient.java