Struct aws_sdk_cloudfront::input::GetInvalidationInput
source · #[non_exhaustive]pub struct GetInvalidationInput { /* private fields */ }
Expand description
The request to get an invalidation's information.
Implementations§
source§impl GetInvalidationInput
impl GetInvalidationInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetInvalidation, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetInvalidation, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetInvalidation
>
Examples found in repository?
src/client.rs (line 4980)
4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetInvalidation,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetInvalidationError>,
> {
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::GetInvalidationOutput,
aws_smithy_http::result::SdkError<crate::error::GetInvalidationError>,
> {
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 GetInvalidationInput
.
Trait Implementations§
source§impl Clone for GetInvalidationInput
impl Clone for GetInvalidationInput
source§fn clone(&self) -> GetInvalidationInput
fn clone(&self) -> GetInvalidationInput
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