aws_sdk_cloudfront/client/
get_response_headers_policy.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 [`GetResponseHeadersPolicy`](crate::operation::get_response_headers_policy::builders::GetResponseHeadersPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`id(impl Into<String>)`](crate::operation::get_response_headers_policy::builders::GetResponseHeadersPolicyFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::get_response_headers_policy::builders::GetResponseHeadersPolicyFluentBuilder::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>
7    /// - On success, responds with [`GetResponseHeadersPolicyOutput`](crate::operation::get_response_headers_policy::GetResponseHeadersPolicyOutput) with field(s):
8    ///   - [`response_headers_policy(Option<ResponseHeadersPolicy>)`](crate::operation::get_response_headers_policy::GetResponseHeadersPolicyOutput::response_headers_policy): <p>Contains a response headers policy.</p>
9    ///   - [`e_tag(Option<String>)`](crate::operation::get_response_headers_policy::GetResponseHeadersPolicyOutput::e_tag): <p>The version identifier for the current version of the response headers policy.</p>
10    /// - On failure, responds with [`SdkError<GetResponseHeadersPolicyError>`](crate::operation::get_response_headers_policy::GetResponseHeadersPolicyError)
11    pub fn get_response_headers_policy(&self) -> crate::operation::get_response_headers_policy::builders::GetResponseHeadersPolicyFluentBuilder {
12        crate::operation::get_response_headers_policy::builders::GetResponseHeadersPolicyFluentBuilder::new(self.handle.clone())
13    }
14}