amazonka-stepfunctions-1.6.0: Amazon Step Functions 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.StepFunctions.GetActivityTask

Contents

Description

Used by workers to retrieve a task (with the specified activity ARN) which has been scheduled for execution by a running state machine. This initiates a long poll, where the service holds the HTTP connection open and responds as soon as a task becomes available (i.e. an execution of a task of this type is needed.) The maximum time the service holds on to the request before responding is 60 seconds. If no task is available within 60 seconds, the poll returns a taskToken with a null string.

Important: Workers should set their client side socket timeout to at least 65 seconds (5 seconds higher than the maximum time the service may hold the poll request).

Synopsis

Creating a Request

getActivityTask Source #

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

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

  • gatWorkerName - You can provide an arbitrary name in order to identify the worker that the task is assigned to. This name is used when it is logged in the execution history.
  • gatActivityARN - The Amazon Resource Name (ARN) of the activity to retrieve tasks from (assigned when you create the task using CreateActivity .)

data GetActivityTask Source #

See: getActivityTask smart constructor.

Instances

Eq GetActivityTask Source # 
Data GetActivityTask Source # 

Methods

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

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

toConstr :: GetActivityTask -> Constr #

dataTypeOf :: GetActivityTask -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: GetActivityTask -> () #

AWSRequest GetActivityTask Source # 
ToHeaders GetActivityTask Source # 
ToPath GetActivityTask Source # 
ToQuery GetActivityTask Source # 
type Rep GetActivityTask Source # 
type Rep GetActivityTask = D1 * (MetaData "GetActivityTask" "Network.AWS.StepFunctions.GetActivityTask" "amazonka-stepfunctions-1.6.0-9oIncLN4t9xDN3HGh7dGqV" False) (C1 * (MetaCons "GetActivityTask'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_gatWorkerName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_gatActivityARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs GetActivityTask Source # 

Request Lenses

gatWorkerName :: Lens' GetActivityTask (Maybe Text) Source #

You can provide an arbitrary name in order to identify the worker that the task is assigned to. This name is used when it is logged in the execution history.

gatActivityARN :: Lens' GetActivityTask Text Source #

The Amazon Resource Name (ARN) of the activity to retrieve tasks from (assigned when you create the task using CreateActivity .)

Destructuring the Response

getActivityTaskResponse Source #

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

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

  • gatrsInput - The string that contains the JSON input data for the task.
  • gatrsTaskToken - A token that identifies the scheduled task. This token must be copied and included in subsequent calls to SendTaskHeartbeat , SendTaskSuccess or SendTaskFailure in order to report the progress or completion of the task.
  • gatrsResponseStatus - -- | The response status code.

data GetActivityTaskResponse Source #

See: getActivityTaskResponse smart constructor.

Instances

Eq GetActivityTaskResponse Source # 
Data GetActivityTaskResponse Source # 

Methods

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

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

toConstr :: GetActivityTaskResponse -> Constr #

dataTypeOf :: GetActivityTaskResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetActivityTaskResponse Source # 
Show GetActivityTaskResponse Source # 
Generic GetActivityTaskResponse Source # 
NFData GetActivityTaskResponse Source # 

Methods

rnf :: GetActivityTaskResponse -> () #

type Rep GetActivityTaskResponse Source # 
type Rep GetActivityTaskResponse = D1 * (MetaData "GetActivityTaskResponse" "Network.AWS.StepFunctions.GetActivityTask" "amazonka-stepfunctions-1.6.0-9oIncLN4t9xDN3HGh7dGqV" False) (C1 * (MetaCons "GetActivityTaskResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_gatrsInput") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gatrsTaskToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_gatrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

gatrsInput :: Lens' GetActivityTaskResponse (Maybe Text) Source #

The string that contains the JSON input data for the task.

gatrsTaskToken :: Lens' GetActivityTaskResponse (Maybe Text) Source #

A token that identifies the scheduled task. This token must be copied and included in subsequent calls to SendTaskHeartbeat , SendTaskSuccess or SendTaskFailure in order to report the progress or completion of the task.