Struct aws_sdk_ec2::input::CancelBundleTaskInput
source · #[non_exhaustive]pub struct CancelBundleTaskInput { /* private fields */ }
Expand description
Contains the parameters for CancelBundleTask.
Implementations§
source§impl CancelBundleTaskInput
impl CancelBundleTaskInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CancelBundleTask, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CancelBundleTask, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CancelBundleTask
>
Examples found in repository?
src/client.rs (line 12662)
12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CancelBundleTask,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CancelBundleTaskError>,
> {
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::CancelBundleTaskOutput,
aws_smithy_http::result::SdkError<crate::error::CancelBundleTaskError>,
> {
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 CancelBundleTaskInput
.
Trait Implementations§
source§impl Clone for CancelBundleTaskInput
impl Clone for CancelBundleTaskInput
source§fn clone(&self) -> CancelBundleTaskInput
fn clone(&self) -> CancelBundleTaskInput
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