pub struct CancelTaskExecution { /* 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 CancelTaskExecution
impl CancelTaskExecution
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CancelTaskExecution, AwsResponseRetryClassifier>, SdkError<CancelTaskExecutionError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CancelTaskExecution, AwsResponseRetryClassifier>, SdkError<CancelTaskExecutionError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CancelTaskExecutionOutput, SdkError<CancelTaskExecutionError>>
pub async fn send(
self
) -> Result<CancelTaskExecutionOutput, SdkError<CancelTaskExecutionError>>
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 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.
Trait Implementations§
source§impl Clone for CancelTaskExecution
impl Clone for CancelTaskExecution
source§fn clone(&self) -> CancelTaskExecution
fn clone(&self) -> CancelTaskExecution
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more