AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the UpdateCachePolicy operation. 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't.
Namespace: Amazon.CloudFront.Model
Assembly: AWSSDK.CloudFront.dll
Version: 3.x.y.z
public class UpdateCachePolicyRequest : AmazonCloudFrontRequest IAmazonWebServiceRequest
The UpdateCachePolicyRequest type exposes the following members
Name | Description | |
---|---|---|
UpdateCachePolicyRequest() |
Name | Type | Description | |
---|---|---|---|
CachePolicyConfig | Amazon.CloudFront.Model.CachePolicyConfig |
Gets and sets the property CachePolicyConfig. A cache policy configuration. |
|
Id | System.String |
Gets and sets the property Id.
The unique identifier for the cache policy that you are updating. The identifier is
returned in a cache behavior's |
|
IfMatch | System.String |
Gets and sets the property IfMatch.
The version of the cache policy that you are updating. The version is returned in
the cache policy's |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5