amazonka-datapipeline-1.5.0: Amazon Data Pipeline SDK.

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

Network.AWS.DataPipeline.SetTaskStatus

Contents

Description

Task runners call SetTaskStatus to notify AWS Data Pipeline that a task is completed and provide information about the final status. A task runner makes this call regardless of whether the task was sucessful. A task runner does not need to call SetTaskStatus for tasks that are canceled by the web service during a call to ReportTaskProgress .

Synopsis

Creating a Request

setTaskStatus Source #

Creates a value of SetTaskStatus with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • stsErrorStackTrace - If an error occurred during the task, this value specifies the stack trace associated with the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.
  • stsErrorId - If an error occurred during the task, this value specifies the error code. This value is set on the physical attempt object. It is used to display error information to the user. It should not start with string Service_ which is reserved by the system.
  • stsErrorMessage - If an error occurred during the task, this value specifies a text description of the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.
  • stsTaskId - The ID of the task assigned to the task runner. This value is provided in the response for PollForTask .
  • stsTaskStatus - If FINISHED , the task successfully completed. If FAILED , the task ended unsuccessfully. Preconditions use false.

data SetTaskStatus Source #

Contains the parameters for SetTaskStatus.

See: setTaskStatus smart constructor.

Instances

Eq SetTaskStatus Source # 
Data SetTaskStatus Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SetTaskStatus -> c SetTaskStatus #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SetTaskStatus #

toConstr :: SetTaskStatus -> Constr #

dataTypeOf :: SetTaskStatus -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c SetTaskStatus) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SetTaskStatus) #

gmapT :: (forall b. Data b => b -> b) -> SetTaskStatus -> SetTaskStatus #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SetTaskStatus -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SetTaskStatus -> r #

gmapQ :: (forall d. Data d => d -> u) -> SetTaskStatus -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SetTaskStatus -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SetTaskStatus -> m SetTaskStatus #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SetTaskStatus -> m SetTaskStatus #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SetTaskStatus -> m SetTaskStatus #

Read SetTaskStatus Source # 
Show SetTaskStatus Source # 
Generic SetTaskStatus Source # 

Associated Types

type Rep SetTaskStatus :: * -> * #

Hashable SetTaskStatus Source # 
ToJSON SetTaskStatus Source # 
NFData SetTaskStatus Source # 

Methods

rnf :: SetTaskStatus -> () #

AWSRequest SetTaskStatus Source # 
ToQuery SetTaskStatus Source # 
ToPath SetTaskStatus Source # 
ToHeaders SetTaskStatus Source # 
type Rep SetTaskStatus Source # 
type Rep SetTaskStatus = D1 (MetaData "SetTaskStatus" "Network.AWS.DataPipeline.SetTaskStatus" "amazonka-datapipeline-1.5.0-1cvcRuECh7Cyyd6yqX05B" False) (C1 (MetaCons "SetTaskStatus'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_stsErrorStackTrace") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_stsErrorId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_stsErrorMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_stsTaskId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_stsTaskStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 TaskStatus))))))
type Rs SetTaskStatus Source # 

Request Lenses

stsErrorStackTrace :: Lens' SetTaskStatus (Maybe Text) Source #

If an error occurred during the task, this value specifies the stack trace associated with the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.

stsErrorId :: Lens' SetTaskStatus (Maybe Text) Source #

If an error occurred during the task, this value specifies the error code. This value is set on the physical attempt object. It is used to display error information to the user. It should not start with string Service_ which is reserved by the system.

stsErrorMessage :: Lens' SetTaskStatus (Maybe Text) Source #

If an error occurred during the task, this value specifies a text description of the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.

stsTaskId :: Lens' SetTaskStatus Text Source #

The ID of the task assigned to the task runner. This value is provided in the response for PollForTask .

stsTaskStatus :: Lens' SetTaskStatus TaskStatus Source #

If FINISHED , the task successfully completed. If FAILED , the task ended unsuccessfully. Preconditions use false.

Destructuring the Response

setTaskStatusResponse Source #

Creates a value of SetTaskStatusResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data SetTaskStatusResponse Source #

Contains the output of SetTaskStatus.

See: setTaskStatusResponse smart constructor.

Instances

Eq SetTaskStatusResponse Source # 
Data SetTaskStatusResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SetTaskStatusResponse -> c SetTaskStatusResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SetTaskStatusResponse #

toConstr :: SetTaskStatusResponse -> Constr #

dataTypeOf :: SetTaskStatusResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c SetTaskStatusResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SetTaskStatusResponse) #

gmapT :: (forall b. Data b => b -> b) -> SetTaskStatusResponse -> SetTaskStatusResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SetTaskStatusResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SetTaskStatusResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> SetTaskStatusResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SetTaskStatusResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SetTaskStatusResponse -> m SetTaskStatusResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SetTaskStatusResponse -> m SetTaskStatusResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SetTaskStatusResponse -> m SetTaskStatusResponse #

Read SetTaskStatusResponse Source # 
Show SetTaskStatusResponse Source # 
Generic SetTaskStatusResponse Source # 
NFData SetTaskStatusResponse Source # 

Methods

rnf :: SetTaskStatusResponse -> () #

type Rep SetTaskStatusResponse Source # 
type Rep SetTaskStatusResponse = D1 (MetaData "SetTaskStatusResponse" "Network.AWS.DataPipeline.SetTaskStatus" "amazonka-datapipeline-1.5.0-1cvcRuECh7Cyyd6yqX05B" True) (C1 (MetaCons "SetTaskStatusResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_stsrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses

stsrsResponseStatus :: Lens' SetTaskStatusResponse Int Source #

  • - | The response status code.