libZSservicesZSamazonka-datasyncZSamazonka-datasync
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.DataSync.StartTaskExecution

Description

Starts a specific invocation of a task. A TaskExecution value represents an individual run of a task. Each task can have at most one TaskExecution at a time.

TaskExecution has the following transition phases: INITIALIZING | PREPARING | TRANSFERRING | VERIFYING | SUCCESS/FAILURE.

For detailed information, see the Task Execution section in the Components and Terminology topic in the DataSync User Guide.

Synopsis

Creating a Request

data StartTaskExecution Source #

StartTaskExecutionRequest

See: newStartTaskExecution smart constructor.

Constructors

StartTaskExecution' 

Fields

  • overrideOptions :: Maybe Options
     
  • includes :: Maybe [FilterRule]

    A list of filter rules that determines which files to include when running a task. The pattern should contain a single filter string that consists of the patterns to include. The patterns are delimited by "|" (that is, a pipe). For example: "/folder1|/folder2"

  • excludes :: Maybe [FilterRule]

    A list of filter rules that determines which files to exclude from a task. The list should contain a single filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for example, "/folder1|/folder2".

  • taskArn :: Text

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

Instances

Instances details
Eq StartTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.StartTaskExecution

Read StartTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.StartTaskExecution

Show StartTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.StartTaskExecution

Generic StartTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.StartTaskExecution

Associated Types

type Rep StartTaskExecution :: Type -> Type #

NFData StartTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.StartTaskExecution

Methods

rnf :: StartTaskExecution -> () #

Hashable StartTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.StartTaskExecution

ToJSON StartTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.StartTaskExecution

AWSRequest StartTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.StartTaskExecution

Associated Types

type AWSResponse StartTaskExecution #

ToHeaders StartTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.StartTaskExecution

ToPath StartTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.StartTaskExecution

ToQuery StartTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.StartTaskExecution

type Rep StartTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.StartTaskExecution

type Rep StartTaskExecution = D1 ('MetaData "StartTaskExecution" "Amazonka.DataSync.StartTaskExecution" "libZSservicesZSamazonka-datasyncZSamazonka-datasync" 'False) (C1 ('MetaCons "StartTaskExecution'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "overrideOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Options)) :*: S1 ('MetaSel ('Just "includes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FilterRule]))) :*: (S1 ('MetaSel ('Just "excludes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FilterRule])) :*: S1 ('MetaSel ('Just "taskArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse StartTaskExecution Source # 
Instance details

Defined in Amazonka.DataSync.StartTaskExecution

newStartTaskExecution Source #

Create a value of StartTaskExecution 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:overrideOptions:StartTaskExecution', startTaskExecution_overrideOptions - Undocumented member.

$sel:includes:StartTaskExecution', startTaskExecution_includes - A list of filter rules that determines which files to include when running a task. The pattern should contain a single filter string that consists of the patterns to include. The patterns are delimited by "|" (that is, a pipe). For example: "/folder1|/folder2"

$sel:excludes:StartTaskExecution', startTaskExecution_excludes - A list of filter rules that determines which files to exclude from a task. The list should contain a single filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for example, "/folder1|/folder2".

$sel:taskArn:StartTaskExecution', startTaskExecution_taskArn - The Amazon Resource Name (ARN) of the task to start.

Request Lenses

startTaskExecution_includes :: Lens' StartTaskExecution (Maybe [FilterRule]) Source #

A list of filter rules that determines which files to include when running a task. The pattern should contain a single filter string that consists of the patterns to include. The patterns are delimited by "|" (that is, a pipe). For example: "/folder1|/folder2"

startTaskExecution_excludes :: Lens' StartTaskExecution (Maybe [FilterRule]) Source #

A list of filter rules that determines which files to exclude from a task. The list should contain a single filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for example, "/folder1|/folder2".

startTaskExecution_taskArn :: Lens' StartTaskExecution Text Source #

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

Destructuring the Response

data StartTaskExecutionResponse Source #

StartTaskExecutionResponse

See: newStartTaskExecutionResponse smart constructor.

Constructors

StartTaskExecutionResponse' 

Fields

Instances

Instances details
Eq StartTaskExecutionResponse Source # 
Instance details

Defined in Amazonka.DataSync.StartTaskExecution

Read StartTaskExecutionResponse Source # 
Instance details

Defined in Amazonka.DataSync.StartTaskExecution

Show StartTaskExecutionResponse Source # 
Instance details

Defined in Amazonka.DataSync.StartTaskExecution

Generic StartTaskExecutionResponse Source # 
Instance details

Defined in Amazonka.DataSync.StartTaskExecution

Associated Types

type Rep StartTaskExecutionResponse :: Type -> Type #

NFData StartTaskExecutionResponse Source # 
Instance details

Defined in Amazonka.DataSync.StartTaskExecution

type Rep StartTaskExecutionResponse Source # 
Instance details

Defined in Amazonka.DataSync.StartTaskExecution

type Rep StartTaskExecutionResponse = D1 ('MetaData "StartTaskExecutionResponse" "Amazonka.DataSync.StartTaskExecution" "libZSservicesZSamazonka-datasyncZSamazonka-datasync" 'False) (C1 ('MetaCons "StartTaskExecutionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "taskExecutionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newStartTaskExecutionResponse Source #

Create a value of StartTaskExecutionResponse 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:taskExecutionArn:StartTaskExecutionResponse', startTaskExecutionResponse_taskExecutionArn - The Amazon Resource Name (ARN) of the specific task execution that was started.

$sel:httpStatus:StartTaskExecutionResponse', startTaskExecutionResponse_httpStatus - The response's http status code.

Response Lenses

startTaskExecutionResponse_taskExecutionArn :: Lens' StartTaskExecutionResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the specific task execution that was started.