Struct aws_sdk_datasync::operation::cancel_task_execution::builders::CancelTaskExecutionFluentBuilder
source · pub struct CancelTaskExecutionFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CancelTaskExecution
.
Stops an DataSync task execution that's in progress. The transfer of some files are abruptly interrupted. File contents that're transferred to the destination might be incomplete or inconsistent with the source files.
However, if you start a new task execution using the same task and allow it to finish, file content on the destination will be complete and consistent. This applies to other unexpected failures that interrupt a task execution. In all of these cases, DataSync successfully completes the transfer when you start the next task execution.
Implementations§
source§impl CancelTaskExecutionFluentBuilder
impl CancelTaskExecutionFluentBuilder
sourcepub fn as_input(&self) -> &CancelTaskExecutionInputBuilder
pub fn as_input(&self) -> &CancelTaskExecutionInputBuilder
Access the CancelTaskExecution as a reference.
sourcepub async fn send(
self
) -> Result<CancelTaskExecutionOutput, SdkError<CancelTaskExecutionError, HttpResponse>>
pub async fn send( self ) -> Result<CancelTaskExecutionOutput, SdkError<CancelTaskExecutionError, HttpResponse>>
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, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CancelTaskExecutionOutput, CancelTaskExecutionError, Self>, SdkError<CancelTaskExecutionError>>
pub async fn customize( self ) -> Result<CustomizableOperation<CancelTaskExecutionOutput, CancelTaskExecutionError, Self>, SdkError<CancelTaskExecutionError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn task_execution_arn(self, input: impl Into<String>) -> Self
pub fn task_execution_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the task execution to stop.
sourcepub fn set_task_execution_arn(self, input: Option<String>) -> Self
pub fn set_task_execution_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the task execution to stop.
sourcepub fn get_task_execution_arn(&self) -> &Option<String>
pub fn get_task_execution_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the task execution to stop.
Trait Implementations§
source§impl Clone for CancelTaskExecutionFluentBuilder
impl Clone for CancelTaskExecutionFluentBuilder
source§fn clone(&self) -> CancelTaskExecutionFluentBuilder
fn clone(&self) -> CancelTaskExecutionFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more