Struct aws_sdk_ec2::input::CancelConversionTaskInput
source · #[non_exhaustive]pub struct CancelConversionTaskInput { /* private fields */ }
Implementations§
source§impl CancelConversionTaskInput
impl CancelConversionTaskInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CancelConversionTask, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CancelConversionTask, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CancelConversionTask
>
Examples found in repository?
src/client.rs (line 12931)
12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CancelConversionTask,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CancelConversionTaskError>,
> {
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::CancelConversionTaskOutput,
aws_smithy_http::result::SdkError<crate::error::CancelConversionTaskError>,
> {
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 CancelConversionTaskInput
.
source§impl CancelConversionTaskInput
impl CancelConversionTaskInput
sourcepub fn conversion_task_id(&self) -> Option<&str>
pub fn conversion_task_id(&self) -> Option<&str>
The ID of the conversion task.
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn reason_message(&self) -> Option<&str>
pub fn reason_message(&self) -> Option<&str>
The reason for canceling the conversion task.
Trait Implementations§
source§impl Clone for CancelConversionTaskInput
impl Clone for CancelConversionTaskInput
source§fn clone(&self) -> CancelConversionTaskInput
fn clone(&self) -> CancelConversionTaskInput
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