aws_sdk_cloudfront/client/delete_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 [`DeleteCachePolicy`](crate::operation::delete_cache_policy::builders::DeleteCachePolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`id(impl Into<String>)`](crate::operation::delete_cache_policy::builders::DeleteCachePolicyFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::delete_cache_policy::builders::DeleteCachePolicyFluentBuilder::set_id):<br>required: **true**<br><p>The unique identifier for the cache policy that you are deleting. To get the identifier, you can use <code>ListCachePolicies</code>.</p><br>
7 /// - [`if_match(impl Into<String>)`](crate::operation::delete_cache_policy::builders::DeleteCachePolicyFluentBuilder::if_match) / [`set_if_match(Option<String>)`](crate::operation::delete_cache_policy::builders::DeleteCachePolicyFluentBuilder::set_if_match):<br>required: **false**<br><p>The version of the cache policy that you are deleting. The version is the cache policy's <code>ETag</code> value, which you can get using <code>ListCachePolicies</code>, <code>GetCachePolicy</code>, or <code>GetCachePolicyConfig</code>.</p><br>
8 /// - On success, responds with [`DeleteCachePolicyOutput`](crate::operation::delete_cache_policy::DeleteCachePolicyOutput)
9 /// - On failure, responds with [`SdkError<DeleteCachePolicyError>`](crate::operation::delete_cache_policy::DeleteCachePolicyError)
10 pub fn delete_cache_policy(&self) -> crate::operation::delete_cache_policy::builders::DeleteCachePolicyFluentBuilder {
11 crate::operation::delete_cache_policy::builders::DeleteCachePolicyFluentBuilder::new(self.handle.clone())
12 }
13}