aws_sdk_cloudfront/client/get_response_headers_policy_config.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 [`GetResponseHeadersPolicyConfig`](crate::operation::get_response_headers_policy_config::builders::GetResponseHeadersPolicyConfigFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - On success, responds with [`GetResponseHeadersPolicyConfigOutput`](crate::operation::get_response_headers_policy_config::GetResponseHeadersPolicyConfigOutput) with field(s):
8 /// - [`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>
9 /// - [`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>
10 /// - On failure, responds with [`SdkError<GetResponseHeadersPolicyConfigError>`](crate::operation::get_response_headers_policy_config::GetResponseHeadersPolicyConfigError)
11 pub fn get_response_headers_policy_config(
12 &self,
13 ) -> crate::operation::get_response_headers_policy_config::builders::GetResponseHeadersPolicyConfigFluentBuilder {
14 crate::operation::get_response_headers_policy_config::builders::GetResponseHeadersPolicyConfigFluentBuilder::new(self.handle.clone())
15 }
16}