aws-sdk-lightsail 1.107.0

AWS SDK for Amazon Lightsail
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetDistributionLatestCacheReset`](crate::operation::get_distribution_latest_cache_reset::builders::GetDistributionLatestCacheResetFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    /// - On success, responds with [`GetDistributionLatestCacheResetOutput`](crate::operation::get_distribution_latest_cache_reset::GetDistributionLatestCacheResetOutput) with field(s):
    ///   - [`status(Option<String>)`](crate::operation::get_distribution_latest_cache_reset::GetDistributionLatestCacheResetOutput::status): <p>The status of the last cache reset.</p>
    ///   - [`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>
    /// - On failure, responds with [`SdkError<GetDistributionLatestCacheResetError>`](crate::operation::get_distribution_latest_cache_reset::GetDistributionLatestCacheResetError)
    pub fn get_distribution_latest_cache_reset(
        &self,
    ) -> crate::operation::get_distribution_latest_cache_reset::builders::GetDistributionLatestCacheResetFluentBuilder {
        crate::operation::get_distribution_latest_cache_reset::builders::GetDistributionLatestCacheResetFluentBuilder::new(self.handle.clone())
    }
}