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 [`GetResponseHeadersPolicyConfig`](crate::operation::get_response_headers_policy_config::builders::GetResponseHeadersPolicyConfigFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`id(impl Into<String>)`](crate::operation::get_response_headers_policy_config::builders::GetResponseHeadersPolicyConfigFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::get_response_headers_policy_config::builders::GetResponseHeadersPolicyConfigFluentBuilder::set_id):<br>required: **true**<br><p>The identifier for the response headers policy.</p>  <p>If the response headers 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 response headers policy is not attached to a cache behavior, you can get the identifier using <code>ListResponseHeadersPolicies</code>.</p><br>
    /// - On success, responds with [`GetResponseHeadersPolicyConfigOutput`](crate::operation::get_response_headers_policy_config::GetResponseHeadersPolicyConfigOutput) with field(s):
    ///   - [`response_headers_policy_config(Option<ResponseHeadersPolicyConfig>)`](crate::operation::get_response_headers_policy_config::GetResponseHeadersPolicyConfigOutput::response_headers_policy_config): <p>Contains a response headers policy.</p>
    ///   - [`e_tag(Option<String>)`](crate::operation::get_response_headers_policy_config::GetResponseHeadersPolicyConfigOutput::e_tag): <p>The version identifier for the current version of the response headers policy.</p>
    /// - On failure, responds with [`SdkError<GetResponseHeadersPolicyConfigError>`](crate::operation::get_response_headers_policy_config::GetResponseHeadersPolicyConfigError)
    pub fn get_response_headers_policy_config(
        &self,
    ) -> crate::operation::get_response_headers_policy_config::builders::GetResponseHeadersPolicyConfigFluentBuilder {
        crate::operation::get_response_headers_policy_config::builders::GetResponseHeadersPolicyConfigFluentBuilder::new(self.handle.clone())
    }
}