@Override
    public DeleteResponseHeadersPolicyResult deleteResponseHeadersPolicy(DeleteResponseHeadersPolicyRequest request) {
        request = beforeClientExecution(request);
        return executeDeleteResponseHeadersPolicy(request);
    }
<p>
Deletes a response headers policy.
</p>
<p>
You cannot delete a response headers policy if it's attached to a cache behavior. First update your distributions
to remove the response headers policy from all cache behaviors, then delete the response headers policy.
</p>
<p>
To delete a response headers policy, you must provide the policy's identifier and version. To get these values,
you can use <code>ListResponseHeadersPolicies</code> or <code>GetResponseHeadersPolicy</code>.
</p>

@param deleteResponseHeadersPolicyRequest
@return Result of the DeleteResponseHeadersPolicy operation returned by the service.
@throws AccessDeniedException
        Access denied.
@throws InvalidIfMatchVersionException
        The <code>If-Match</code> version is missing or not valid.
@throws NoSuchResponseHeadersPolicyException
        The response headers policy does not exist.
@throws PreconditionFailedException
        The precondition in one or more of the request fields evaluated to <code>false</code>.
@throws IllegalDeleteException
        You cannot delete a managed policy.
@throws ResponseHeadersPolicyInUseException
        Cannot delete the response headers policy because it is attached to one or more cache behaviors in a
        CloudFront distribution.
@sample AmazonCloudFront.DeleteResponseHeadersPolicy
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteResponseHeadersPolicy"
     target="_top">AWS API Documentation</a>
aws-java-sdk-cloudfront/src/main/java/com/amazonaws/services/cloudfront/AmazonCloudFrontClient.java