#[non_exhaustive]pub struct UpdateResponseHeadersPolicyInput { /* private fields */ }Implementations§
source§impl UpdateResponseHeadersPolicyInput
impl UpdateResponseHeadersPolicyInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateResponseHeadersPolicy, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateResponseHeadersPolicy, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateResponseHeadersPolicy>
Examples found in repository?
src/client.rs (line 9738)
9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateResponseHeadersPolicy,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateResponseHeadersPolicyError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateResponseHeadersPolicyOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateResponseHeadersPolicyError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UpdateResponseHeadersPolicyInput.
source§impl UpdateResponseHeadersPolicyInput
impl UpdateResponseHeadersPolicyInput
sourcepub fn response_headers_policy_config(
&self
) -> Option<&ResponseHeadersPolicyConfig>
pub fn response_headers_policy_config(
&self
) -> Option<&ResponseHeadersPolicyConfig>
A response headers policy configuration.
Trait Implementations§
source§impl Clone for UpdateResponseHeadersPolicyInput
impl Clone for UpdateResponseHeadersPolicyInput
source§fn clone(&self) -> UpdateResponseHeadersPolicyInput
fn clone(&self) -> UpdateResponseHeadersPolicyInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more