aws_sdk_lightsail/client/get_distribution_latest_cache_reset.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 [`GetDistributionLatestCacheReset`](crate::operation::get_distribution_latest_cache_reset::builders::GetDistributionLatestCacheResetFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`distribution_name(impl Into<String>)`](crate::operation::get_distribution_latest_cache_reset::builders::GetDistributionLatestCacheResetFluentBuilder::distribution_name) / [`set_distribution_name(Option<String>)`](crate::operation::get_distribution_latest_cache_reset::builders::GetDistributionLatestCacheResetFluentBuilder::set_distribution_name):<br>required: **false**<br><p>The name of the distribution for which to return the timestamp of the last cache reset.</p> <p>Use the <code>GetDistributions</code> action to get a list of distribution names that you can specify.</p> <p>When omitted, the response includes the latest cache reset timestamp of all your distributions.</p><br>
7 /// - On success, responds with [`GetDistributionLatestCacheResetOutput`](crate::operation::get_distribution_latest_cache_reset::GetDistributionLatestCacheResetOutput) with field(s):
8 /// - [`status(Option<String>)`](crate::operation::get_distribution_latest_cache_reset::GetDistributionLatestCacheResetOutput::status): <p>The status of the last cache reset.</p>
9 /// - [`create_time(Option<DateTime>)`](crate::operation::get_distribution_latest_cache_reset::GetDistributionLatestCacheResetOutput::create_time): <p>The timestamp of the last cache reset (<code>1479734909.17</code>) in Unix time format.</p>
10 /// - On failure, responds with [`SdkError<GetDistributionLatestCacheResetError>`](crate::operation::get_distribution_latest_cache_reset::GetDistributionLatestCacheResetError)
11 pub fn get_distribution_latest_cache_reset(
12 &self,
13 ) -> crate::operation::get_distribution_latest_cache_reset::builders::GetDistributionLatestCacheResetFluentBuilder {
14 crate::operation::get_distribution_latest_cache_reset::builders::GetDistributionLatestCacheResetFluentBuilder::new(self.handle.clone())
15 }
16}