aws_sdk_lightsail/client/reset_distribution_cache.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 [`ResetDistributionCache`](crate::operation::reset_distribution_cache::builders::ResetDistributionCacheFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`distribution_name(impl Into<String>)`](crate::operation::reset_distribution_cache::builders::ResetDistributionCacheFluentBuilder::distribution_name) / [`set_distribution_name(Option<String>)`](crate::operation::reset_distribution_cache::builders::ResetDistributionCacheFluentBuilder::set_distribution_name):<br>required: **false**<br><p>The name of the distribution for which to reset cache.</p> <p>Use the <code>GetDistributions</code> action to get a list of distribution names that you can specify.</p><br>
7 /// - On success, responds with [`ResetDistributionCacheOutput`](crate::operation::reset_distribution_cache::ResetDistributionCacheOutput) with field(s):
8 /// - [`status(Option<String>)`](crate::operation::reset_distribution_cache::ResetDistributionCacheOutput::status): <p>The status of the reset cache request.</p>
9 /// - [`create_time(Option<DateTime>)`](crate::operation::reset_distribution_cache::ResetDistributionCacheOutput::create_time): <p>The timestamp of the reset cache request (<code>1479734909.17</code>) in Unix time format.</p>
10 /// - [`operation(Option<Operation>)`](crate::operation::reset_distribution_cache::ResetDistributionCacheOutput::operation): <p>An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.</p>
11 /// - On failure, responds with [`SdkError<ResetDistributionCacheError>`](crate::operation::reset_distribution_cache::ResetDistributionCacheError)
12 pub fn reset_distribution_cache(&self) -> crate::operation::reset_distribution_cache::builders::ResetDistributionCacheFluentBuilder {
13 crate::operation::reset_distribution_cache::builders::ResetDistributionCacheFluentBuilder::new(self.handle.clone())
14 }
15}