amazonka-stepfunctions-1.4.5: Amazon Step Functions SDK.

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

Network.AWS.StepFunctions.SendTaskFailure

Contents

Description

Used by workers to report that the task identified by the taskToken failed.

Synopsis

Creating a Request

sendTaskFailure Source #

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

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

  • stfError - An arbitrary error code that identifies the cause of the failure.
  • stfCause - A more detailed explanation of the cause of the failure.
  • stfTaskToken - The token that represents this task. Task tokens are generated by the service when the tasks are assigned to a worker (see GetActivityTask::taskToken).

data SendTaskFailure Source #

See: sendTaskFailure smart constructor.

Instances

Eq SendTaskFailure Source # 
Data SendTaskFailure Source # 

Methods

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

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

toConstr :: SendTaskFailure -> Constr #

dataTypeOf :: SendTaskFailure -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SendTaskFailure Source # 
Show SendTaskFailure Source # 
Generic SendTaskFailure Source # 
Hashable SendTaskFailure Source # 
ToJSON SendTaskFailure Source # 
NFData SendTaskFailure Source # 

Methods

rnf :: SendTaskFailure -> () #

AWSRequest SendTaskFailure Source # 
ToPath SendTaskFailure Source # 
ToHeaders SendTaskFailure Source # 
ToQuery SendTaskFailure Source # 
type Rep SendTaskFailure Source # 
type Rep SendTaskFailure = D1 (MetaData "SendTaskFailure" "Network.AWS.StepFunctions.SendTaskFailure" "amazonka-stepfunctions-1.4.5-WXy4AxO2hM72RNEOsME5O" False) (C1 (MetaCons "SendTaskFailure'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_stfError") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_stfCause") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_stfTaskToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs SendTaskFailure Source # 

Request Lenses

stfError :: Lens' SendTaskFailure (Maybe Text) Source #

An arbitrary error code that identifies the cause of the failure.

stfCause :: Lens' SendTaskFailure (Maybe Text) Source #

A more detailed explanation of the cause of the failure.

stfTaskToken :: Lens' SendTaskFailure Text Source #

The token that represents this task. Task tokens are generated by the service when the tasks are assigned to a worker (see GetActivityTask::taskToken).

Destructuring the Response

sendTaskFailureResponse Source #

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

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

data SendTaskFailureResponse Source #

See: sendTaskFailureResponse smart constructor.

Instances

Eq SendTaskFailureResponse Source # 
Data SendTaskFailureResponse Source # 

Methods

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

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

toConstr :: SendTaskFailureResponse -> Constr #

dataTypeOf :: SendTaskFailureResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SendTaskFailureResponse Source # 
Show SendTaskFailureResponse Source # 
Generic SendTaskFailureResponse Source # 
NFData SendTaskFailureResponse Source # 

Methods

rnf :: SendTaskFailureResponse -> () #

type Rep SendTaskFailureResponse Source # 
type Rep SendTaskFailureResponse = D1 (MetaData "SendTaskFailureResponse" "Network.AWS.StepFunctions.SendTaskFailure" "amazonka-stepfunctions-1.4.5-WXy4AxO2hM72RNEOsME5O" True) (C1 (MetaCons "SendTaskFailureResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_stfrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses