aws_sdk_cloudfront/client/update_cache_policy.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`UpdateCachePolicy`](crate::operation::update_cache_policy::builders::UpdateCachePolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`cache_policy_config(CachePolicyConfig)`](crate::operation::update_cache_policy::builders::UpdateCachePolicyFluentBuilder::cache_policy_config) / [`set_cache_policy_config(Option<CachePolicyConfig>)`](crate::operation::update_cache_policy::builders::UpdateCachePolicyFluentBuilder::set_cache_policy_config):<br>required: **true**<br><p>A cache policy configuration.</p><br>
7 /// - [`id(impl Into<String>)`](crate::operation::update_cache_policy::builders::UpdateCachePolicyFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::update_cache_policy::builders::UpdateCachePolicyFluentBuilder::set_id):<br>required: **true**<br><p>The unique identifier for the cache policy that you are updating. The identifier is returned in a cache behavior's <code>CachePolicyId</code> field in the response to <code>GetDistributionConfig</code>.</p><br>
8 /// - [`if_match(impl Into<String>)`](crate::operation::update_cache_policy::builders::UpdateCachePolicyFluentBuilder::if_match) / [`set_if_match(Option<String>)`](crate::operation::update_cache_policy::builders::UpdateCachePolicyFluentBuilder::set_if_match):<br>required: **false**<br><p>The version of the cache policy that you are updating. The version is returned in the cache policy's <code>ETag</code> field in the response to <code>GetCachePolicyConfig</code>.</p><br>
9 /// - On success, responds with [`UpdateCachePolicyOutput`](crate::operation::update_cache_policy::UpdateCachePolicyOutput) with field(s):
10 /// - [`cache_policy(Option<CachePolicy>)`](crate::operation::update_cache_policy::UpdateCachePolicyOutput::cache_policy): <p>A cache policy.</p>
11 /// - [`e_tag(Option<String>)`](crate::operation::update_cache_policy::UpdateCachePolicyOutput::e_tag): <p>The current version of the cache policy.</p>
12 /// - On failure, responds with [`SdkError<UpdateCachePolicyError>`](crate::operation::update_cache_policy::UpdateCachePolicyError)
13 pub fn update_cache_policy(&self) -> crate::operation::update_cache_policy::builders::UpdateCachePolicyFluentBuilder {
14 crate::operation::update_cache_policy::builders::UpdateCachePolicyFluentBuilder::new(self.handle.clone())
15 }
16}