Struct aws_sdk_cloudfront::input::UpdateCachePolicyInput
source · #[non_exhaustive]pub struct UpdateCachePolicyInput { /* private fields */ }
Implementations§
source§impl UpdateCachePolicyInput
impl UpdateCachePolicyInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateCachePolicy, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateCachePolicy, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateCachePolicy
>
Examples found in repository?
src/client.rs (line 8562)
8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateCachePolicy,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateCachePolicyError>,
> {
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::UpdateCachePolicyOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateCachePolicyError>,
> {
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 UpdateCachePolicyInput
.
source§impl UpdateCachePolicyInput
impl UpdateCachePolicyInput
sourcepub fn cache_policy_config(&self) -> Option<&CachePolicyConfig>
pub fn cache_policy_config(&self) -> Option<&CachePolicyConfig>
A cache policy configuration.
Trait Implementations§
source§impl Clone for UpdateCachePolicyInput
impl Clone for UpdateCachePolicyInput
source§fn clone(&self) -> UpdateCachePolicyInput
fn clone(&self) -> UpdateCachePolicyInput
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