amazonka-datasync-2.0: Amazon DataSync SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.DataSync.CancelTaskExecution

Description

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.

Synopsis

Creating a Request

data CancelTaskExecution Source #

CancelTaskExecutionRequest

See: newCancelTaskExecution smart constructor.

Constructors

CancelTaskExecution' 

Fields

Instances

Instances details
ToJSON CancelTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.CancelTaskExecution

ToHeaders CancelTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.CancelTaskExecution

ToPath CancelTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.CancelTaskExecution

ToQuery CancelTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.CancelTaskExecution

AWSRequest CancelTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.CancelTaskExecution

Associated Types

type AWSResponse CancelTaskExecution #

Generic CancelTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.CancelTaskExecution

Associated Types

type Rep CancelTaskExecution :: Type -> Type #

Read CancelTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.CancelTaskExecution

Show CancelTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.CancelTaskExecution

NFData CancelTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.CancelTaskExecution

Methods

rnf :: CancelTaskExecution -> () #

Eq CancelTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.CancelTaskExecution

Hashable CancelTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.CancelTaskExecution

type AWSResponse CancelTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.CancelTaskExecution

type Rep CancelTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.CancelTaskExecution

type Rep CancelTaskExecution = D1 ('MetaData "CancelTaskExecution" "Amazonka.DataSync.CancelTaskExecution" "amazonka-datasync-2.0-LCcm4ddRe2z4CES4wun76Z" 'False) (C1 ('MetaCons "CancelTaskExecution'" 'PrefixI 'True) (S1 ('MetaSel ('Just "taskExecutionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newCancelTaskExecution Source #

Create a value of CancelTaskExecution with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CancelTaskExecution, cancelTaskExecution_taskExecutionArn - The Amazon Resource Name (ARN) of the task execution to stop.

Request Lenses

cancelTaskExecution_taskExecutionArn :: Lens' CancelTaskExecution Text Source #

The Amazon Resource Name (ARN) of the task execution to stop.

Destructuring the Response

data CancelTaskExecutionResponse Source #

See: newCancelTaskExecutionResponse smart constructor.

Constructors

CancelTaskExecutionResponse' 

Fields

Instances

Instances details
Generic CancelTaskExecutionResponse Source # 
Instance details

Defined in Amazonka.DataSync.CancelTaskExecution

Associated Types

type Rep CancelTaskExecutionResponse :: Type -> Type #

Read CancelTaskExecutionResponse Source # 
Instance details

Defined in Amazonka.DataSync.CancelTaskExecution

Show CancelTaskExecutionResponse Source # 
Instance details

Defined in Amazonka.DataSync.CancelTaskExecution

NFData CancelTaskExecutionResponse Source # 
Instance details

Defined in Amazonka.DataSync.CancelTaskExecution

Eq CancelTaskExecutionResponse Source # 
Instance details

Defined in Amazonka.DataSync.CancelTaskExecution

type Rep CancelTaskExecutionResponse Source # 
Instance details

Defined in Amazonka.DataSync.CancelTaskExecution

type Rep CancelTaskExecutionResponse = D1 ('MetaData "CancelTaskExecutionResponse" "Amazonka.DataSync.CancelTaskExecution" "amazonka-datasync-2.0-LCcm4ddRe2z4CES4wun76Z" 'False) (C1 ('MetaCons "CancelTaskExecutionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCancelTaskExecutionResponse Source #

Create a value of CancelTaskExecutionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:CancelTaskExecutionResponse', cancelTaskExecutionResponse_httpStatus - The response's http status code.

Response Lenses