Updates a response headers policy.
When you update a response headers policy, the entire policy is replaced. You cannot update some policy fields independent of others. To update a response headers policy configuration:
-
Use GetResponseHeadersPolicyConfig to get the current policy's configuration.
-
Modify the fields in the response headers policy configuration that you want to update.
-
Call UpdateResponseHeadersPolicy, providing the entire response headers policy configuration, including the fields that you modified and those that you didn't.
put/2020-05-31/response-headers-policy/{Id}
Path parameters
Idstring required
The identifier for the response headers policy that you are updating.
Headers
If-Matchstring
<p>The version of the response headers policy that you are updating.</p> <p>The version is returned in the cache policy's <code>ETag</code> field in the response to <code>GetResponseHeadersPolicyConfig</code>.</p>
Response
Success