aws_sdk_cloudfront/client/
update_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 [`UpdateResponseHeadersPolicy`](crate::operation::update_response_headers_policy::builders::UpdateResponseHeadersPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`response_headers_policy_config(ResponseHeadersPolicyConfig)`](crate::operation::update_response_headers_policy::builders::UpdateResponseHeadersPolicyFluentBuilder::response_headers_policy_config) / [`set_response_headers_policy_config(Option<ResponseHeadersPolicyConfig>)`](crate::operation::update_response_headers_policy::builders::UpdateResponseHeadersPolicyFluentBuilder::set_response_headers_policy_config):<br>required: **true**<br><p>A response headers policy configuration.</p><br>
7    ///   - [`id(impl Into<String>)`](crate::operation::update_response_headers_policy::builders::UpdateResponseHeadersPolicyFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::update_response_headers_policy::builders::UpdateResponseHeadersPolicyFluentBuilder::set_id):<br>required: **true**<br><p>The identifier for the response headers policy that you are updating.</p><br>
8    ///   - [`if_match(impl Into<String>)`](crate::operation::update_response_headers_policy::builders::UpdateResponseHeadersPolicyFluentBuilder::if_match) / [`set_if_match(Option<String>)`](crate::operation::update_response_headers_policy::builders::UpdateResponseHeadersPolicyFluentBuilder::set_if_match):<br>required: **false**<br><p>The version of the response headers policy that you are updating.</p> <p>The version is returned in the cache policy's <code>ETag</code> field in the response to <code>GetResponseHeadersPolicyConfig</code>.</p><br>
9    /// - On success, responds with [`UpdateResponseHeadersPolicyOutput`](crate::operation::update_response_headers_policy::UpdateResponseHeadersPolicyOutput) with field(s):
10    ///   - [`response_headers_policy(Option<ResponseHeadersPolicy>)`](crate::operation::update_response_headers_policy::UpdateResponseHeadersPolicyOutput::response_headers_policy): <p>A response headers policy.</p>
11    ///   - [`e_tag(Option<String>)`](crate::operation::update_response_headers_policy::UpdateResponseHeadersPolicyOutput::e_tag): <p>The current version of the response headers policy.</p>
12    /// - On failure, responds with [`SdkError<UpdateResponseHeadersPolicyError>`](crate::operation::update_response_headers_policy::UpdateResponseHeadersPolicyError)
13    pub fn update_response_headers_policy(
14        &self,
15    ) -> crate::operation::update_response_headers_policy::builders::UpdateResponseHeadersPolicyFluentBuilder {
16        crate::operation::update_response_headers_policy::builders::UpdateResponseHeadersPolicyFluentBuilder::new(self.handle.clone())
17    }
18}