Updates a cache policy configuration.
When you update a cache policy configuration, all the fields are updated with the values provided in the request. You cannot update some fields independent of others. To update a cache policy configuration:
Use GetCachePolicyConfig
to get the current configuration.
Locally modify the fields in the cache policy configuration that you want to update.
Call UpdateCachePolicy
by providing the entire cache policy
configuration, including the fields that you modified and those that
you didn<U+2019>t.
cloudfront_update_cache_policy(CachePolicyConfig, Id, IfMatch)
[required] A cache policy configuration.
[required] The unique identifier for the cache policy that you are updating. The
identifier is returned in a cache behavior<U+2019>s CachePolicyId
field in
the response to GetDistributionConfig
.
The version of the cache policy that you are updating. The version is
returned in the cache policy<U+2019>s ETag
field in the response to
GetCachePolicyConfig
.
svc$update_cache_policy( CachePolicyConfig = list( Comment = "string", Name = "string", DefaultTTL = 123, MaxTTL = 123, MinTTL = 123, ParametersInCacheKeyAndForwardedToOrigin = list( EnableAcceptEncodingGzip = TRUE|FALSE, EnableAcceptEncodingBrotli = TRUE|FALSE, HeadersConfig = list( HeaderBehavior = "none"|"whitelist", Headers = list( Quantity = 123, Items = list( "string" ) ) ), CookiesConfig = list( CookieBehavior = "none"|"whitelist"|"allExcept"|"all", Cookies = list( Quantity = 123, Items = list( "string" ) ) ), QueryStringsConfig = list( QueryStringBehavior = "none"|"whitelist"|"allExcept"|"all", QueryStrings = list( Quantity = 123, Items = list( "string" ) ) ) ) ), Id = "string", IfMatch = "string" )