amazonka-stepfunctions-1.6.1: 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 # 
Instance details

Defined in Network.AWS.StepFunctions.GetActivityTask

Data GetActivityTask Source # 
Instance details

Defined in Network.AWS.StepFunctions.GetActivityTask

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

Defined in Network.AWS.StepFunctions.GetActivityTask

Show GetActivityTask Source # 
Instance details

Defined in Network.AWS.StepFunctions.GetActivityTask

Generic GetActivityTask Source # 
Instance details

Defined in Network.AWS.StepFunctions.GetActivityTask

Associated Types

type Rep GetActivityTask :: Type -> Type #

Hashable GetActivityTask Source # 
Instance details

Defined in Network.AWS.StepFunctions.GetActivityTask

ToJSON GetActivityTask Source # 
Instance details

Defined in Network.AWS.StepFunctions.GetActivityTask

AWSRequest GetActivityTask Source # 
Instance details

Defined in Network.AWS.StepFunctions.GetActivityTask

Associated Types

type Rs GetActivityTask :: Type #

ToHeaders GetActivityTask Source # 
Instance details

Defined in Network.AWS.StepFunctions.GetActivityTask

ToPath GetActivityTask Source # 
Instance details

Defined in Network.AWS.StepFunctions.GetActivityTask

ToQuery GetActivityTask Source # 
Instance details

Defined in Network.AWS.StepFunctions.GetActivityTask

NFData GetActivityTask Source # 
Instance details

Defined in Network.AWS.StepFunctions.GetActivityTask

Methods

rnf :: GetActivityTask -> () #

type Rep GetActivityTask Source # 
Instance details

Defined in Network.AWS.StepFunctions.GetActivityTask

type Rep GetActivityTask = D1 (MetaData "GetActivityTask" "Network.AWS.StepFunctions.GetActivityTask" "amazonka-stepfunctions-1.6.1-2PTLha96w99Qwy2XlD0kq" False) (C1 (MetaCons "GetActivityTask'" PrefixI True) (S1 (MetaSel (Just "_gatWorkerName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gatActivityARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs GetActivityTask Source # 
Instance details

Defined in Network.AWS.StepFunctions.GetActivityTask

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

Defined in Network.AWS.StepFunctions.GetActivityTask

Data GetActivityTaskResponse Source # 
Instance details

Defined in Network.AWS.StepFunctions.GetActivityTask

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

Defined in Network.AWS.StepFunctions.GetActivityTask

Show GetActivityTaskResponse Source # 
Instance details

Defined in Network.AWS.StepFunctions.GetActivityTask

Generic GetActivityTaskResponse Source # 
Instance details

Defined in Network.AWS.StepFunctions.GetActivityTask

Associated Types

type Rep GetActivityTaskResponse :: Type -> Type #

NFData GetActivityTaskResponse Source # 
Instance details

Defined in Network.AWS.StepFunctions.GetActivityTask

Methods

rnf :: GetActivityTaskResponse -> () #

type Rep GetActivityTaskResponse Source # 
Instance details

Defined in Network.AWS.StepFunctions.GetActivityTask

type Rep GetActivityTaskResponse = D1 (MetaData "GetActivityTaskResponse" "Network.AWS.StepFunctions.GetActivityTask" "amazonka-stepfunctions-1.6.1-2PTLha96w99Qwy2XlD0kq" False) (C1 (MetaCons "GetActivityTaskResponse'" PrefixI True) (S1 (MetaSel (Just "_gatrsInput") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_gatrsTaskToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_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.