1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetCachePolicy`](crate::operation::get_cache_policy::builders::GetCachePolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`id(impl Into<String>)`](crate::operation::get_cache_policy::builders::GetCachePolicyFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::get_cache_policy::builders::GetCachePolicyFluentBuilder::set_id): <p>The unique identifier for the cache policy. If the cache policy is attached to a distribution's cache behavior, you can get the policy's identifier using <code>ListDistributions</code> or <code>GetDistribution</code>. If the cache policy is not attached to a cache behavior, you can get the identifier using <code>ListCachePolicies</code>.</p>
    /// - On success, responds with [`GetCachePolicyOutput`](crate::operation::get_cache_policy::GetCachePolicyOutput) with field(s):
    ///   - [`cache_policy(Option<CachePolicy>)`](crate::operation::get_cache_policy::GetCachePolicyOutput::cache_policy): <p>The cache policy.</p>
    ///   - [`e_tag(Option<String>)`](crate::operation::get_cache_policy::GetCachePolicyOutput::e_tag): <p>The current version of the cache policy.</p>
    /// - On failure, responds with [`SdkError<GetCachePolicyError>`](crate::operation::get_cache_policy::GetCachePolicyError)
    pub fn get_cache_policy(
        &self,
    ) -> crate::operation::get_cache_policy::builders::GetCachePolicyFluentBuilder {
        crate::operation::get_cache_policy::builders::GetCachePolicyFluentBuilder::new(
            self.handle.clone(),
        )
    }
}