amazonka-datapipeline-1.6.1: Amazon Data Pipeline SDK.

Copyright(c) 2013-2018 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 # 
Instance details

Defined in Network.AWS.DataPipeline.SetTaskStatus

Data SetTaskStatus Source # 
Instance details

Defined in Network.AWS.DataPipeline.SetTaskStatus

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 # 
Instance details

Defined in Network.AWS.DataPipeline.SetTaskStatus

Show SetTaskStatus Source # 
Instance details

Defined in Network.AWS.DataPipeline.SetTaskStatus

Generic SetTaskStatus Source # 
Instance details

Defined in Network.AWS.DataPipeline.SetTaskStatus

Associated Types

type Rep SetTaskStatus :: Type -> Type #

Hashable SetTaskStatus Source # 
Instance details

Defined in Network.AWS.DataPipeline.SetTaskStatus

ToJSON SetTaskStatus Source # 
Instance details

Defined in Network.AWS.DataPipeline.SetTaskStatus

AWSRequest SetTaskStatus Source # 
Instance details

Defined in Network.AWS.DataPipeline.SetTaskStatus

Associated Types

type Rs SetTaskStatus :: Type #

ToHeaders SetTaskStatus Source # 
Instance details

Defined in Network.AWS.DataPipeline.SetTaskStatus

ToPath SetTaskStatus Source # 
Instance details

Defined in Network.AWS.DataPipeline.SetTaskStatus

ToQuery SetTaskStatus Source # 
Instance details

Defined in Network.AWS.DataPipeline.SetTaskStatus

NFData SetTaskStatus Source # 
Instance details

Defined in Network.AWS.DataPipeline.SetTaskStatus

Methods

rnf :: SetTaskStatus -> () #

type Rep SetTaskStatus Source # 
Instance details

Defined in Network.AWS.DataPipeline.SetTaskStatus

type Rep SetTaskStatus = D1 (MetaData "SetTaskStatus" "Network.AWS.DataPipeline.SetTaskStatus" "amazonka-datapipeline-1.6.1-3JyTLPZzwy0KRZE2VQaeKm" False) (C1 (MetaCons "SetTaskStatus'" PrefixI True) ((S1 (MetaSel (Just "_stsErrorStackTrace") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_stsErrorId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_stsErrorMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_stsTaskId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_stsTaskStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 TaskStatus)))))
type Rs SetTaskStatus Source # 
Instance details

Defined in Network.AWS.DataPipeline.SetTaskStatus

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 # 
Instance details

Defined in Network.AWS.DataPipeline.SetTaskStatus

Data SetTaskStatusResponse Source # 
Instance details

Defined in Network.AWS.DataPipeline.SetTaskStatus

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 # 
Instance details

Defined in Network.AWS.DataPipeline.SetTaskStatus

Show SetTaskStatusResponse Source # 
Instance details

Defined in Network.AWS.DataPipeline.SetTaskStatus

Generic SetTaskStatusResponse Source # 
Instance details

Defined in Network.AWS.DataPipeline.SetTaskStatus

Associated Types

type Rep SetTaskStatusResponse :: Type -> Type #

NFData SetTaskStatusResponse Source # 
Instance details

Defined in Network.AWS.DataPipeline.SetTaskStatus

Methods

rnf :: SetTaskStatusResponse -> () #

type Rep SetTaskStatusResponse Source # 
Instance details

Defined in Network.AWS.DataPipeline.SetTaskStatus

type Rep SetTaskStatusResponse = D1 (MetaData "SetTaskStatusResponse" "Network.AWS.DataPipeline.SetTaskStatus" "amazonka-datapipeline-1.6.1-3JyTLPZzwy0KRZE2VQaeKm" True) (C1 (MetaCons "SetTaskStatusResponse'" PrefixI True) (S1 (MetaSel (Just "_stsrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses

stsrsResponseStatus :: Lens' SetTaskStatusResponse Int Source #

  • - | The response status code.