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

Amazonka.SWF.RespondDecisionTaskCompleted

Description

Used by deciders to tell the service that the DecisionTask identified by the taskToken has successfully completed. The decisions argument specifies the list of decisions made while processing the task.

A DecisionTaskCompleted event is added to the workflow history. The executionContext specified is attached to the event in the workflow execution history.

Access Control

If an IAM policy grants permission to use RespondDecisionTaskCompleted, it can express permissions for the list of decisions in the decisions parameter. Each of the decisions has one or more parameters, much like a regular API call. To allow for policies to be as readable as possible, you can express permissions on decisions as if they were actual API calls, including applying conditions to some parameters. For more information, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.

Synopsis

Creating a Request

data RespondDecisionTaskCompleted Source #

Input data for a TaskCompleted response to a decision task.

See: newRespondDecisionTaskCompleted smart constructor.

Constructors

RespondDecisionTaskCompleted' 

Fields

  • decisions :: Maybe [Decision]

    The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the Decision structure for details.

  • executionContext :: Maybe Text

    User defined context to add to workflow execution.

  • taskToken :: Text

    The taskToken from the DecisionTask.

    taskToken is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken must also be passed. This enables it to provide its progress and respond with results.

Instances

Instances details
Eq RespondDecisionTaskCompleted Source # 
Instance details

Defined in Amazonka.SWF.RespondDecisionTaskCompleted

Read RespondDecisionTaskCompleted Source # 
Instance details

Defined in Amazonka.SWF.RespondDecisionTaskCompleted

Show RespondDecisionTaskCompleted Source # 
Instance details

Defined in Amazonka.SWF.RespondDecisionTaskCompleted

Generic RespondDecisionTaskCompleted Source # 
Instance details

Defined in Amazonka.SWF.RespondDecisionTaskCompleted

Associated Types

type Rep RespondDecisionTaskCompleted :: Type -> Type #

NFData RespondDecisionTaskCompleted Source # 
Instance details

Defined in Amazonka.SWF.RespondDecisionTaskCompleted

Hashable RespondDecisionTaskCompleted Source # 
Instance details

Defined in Amazonka.SWF.RespondDecisionTaskCompleted

ToJSON RespondDecisionTaskCompleted Source # 
Instance details

Defined in Amazonka.SWF.RespondDecisionTaskCompleted

AWSRequest RespondDecisionTaskCompleted Source # 
Instance details

Defined in Amazonka.SWF.RespondDecisionTaskCompleted

ToHeaders RespondDecisionTaskCompleted Source # 
Instance details

Defined in Amazonka.SWF.RespondDecisionTaskCompleted

ToPath RespondDecisionTaskCompleted Source # 
Instance details

Defined in Amazonka.SWF.RespondDecisionTaskCompleted

ToQuery RespondDecisionTaskCompleted Source # 
Instance details

Defined in Amazonka.SWF.RespondDecisionTaskCompleted

type Rep RespondDecisionTaskCompleted Source # 
Instance details

Defined in Amazonka.SWF.RespondDecisionTaskCompleted

type Rep RespondDecisionTaskCompleted = D1 ('MetaData "RespondDecisionTaskCompleted" "Amazonka.SWF.RespondDecisionTaskCompleted" "libZSservicesZSamazonka-swfZSamazonka-swf" 'False) (C1 ('MetaCons "RespondDecisionTaskCompleted'" 'PrefixI 'True) (S1 ('MetaSel ('Just "decisions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Decision])) :*: (S1 ('MetaSel ('Just "executionContext") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "taskToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse RespondDecisionTaskCompleted Source # 
Instance details

Defined in Amazonka.SWF.RespondDecisionTaskCompleted

newRespondDecisionTaskCompleted Source #

Create a value of RespondDecisionTaskCompleted with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:decisions:RespondDecisionTaskCompleted', respondDecisionTaskCompleted_decisions - The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the Decision structure for details.

$sel:executionContext:RespondDecisionTaskCompleted', respondDecisionTaskCompleted_executionContext - User defined context to add to workflow execution.

$sel:taskToken:RespondDecisionTaskCompleted', respondDecisionTaskCompleted_taskToken - The taskToken from the DecisionTask.

taskToken is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken must also be passed. This enables it to provide its progress and respond with results.

Request Lenses

respondDecisionTaskCompleted_decisions :: Lens' RespondDecisionTaskCompleted (Maybe [Decision]) Source #

The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the Decision structure for details.

respondDecisionTaskCompleted_taskToken :: Lens' RespondDecisionTaskCompleted Text Source #

The taskToken from the DecisionTask.

taskToken is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken must also be passed. This enables it to provide its progress and respond with results.

Destructuring the Response

data RespondDecisionTaskCompletedResponse Source #

Instances

Instances details
Eq RespondDecisionTaskCompletedResponse Source # 
Instance details

Defined in Amazonka.SWF.RespondDecisionTaskCompleted

Read RespondDecisionTaskCompletedResponse Source # 
Instance details

Defined in Amazonka.SWF.RespondDecisionTaskCompleted

Show RespondDecisionTaskCompletedResponse Source # 
Instance details

Defined in Amazonka.SWF.RespondDecisionTaskCompleted

Generic RespondDecisionTaskCompletedResponse Source # 
Instance details

Defined in Amazonka.SWF.RespondDecisionTaskCompleted

NFData RespondDecisionTaskCompletedResponse Source # 
Instance details

Defined in Amazonka.SWF.RespondDecisionTaskCompleted

type Rep RespondDecisionTaskCompletedResponse Source # 
Instance details

Defined in Amazonka.SWF.RespondDecisionTaskCompleted

type Rep RespondDecisionTaskCompletedResponse = D1 ('MetaData "RespondDecisionTaskCompletedResponse" "Amazonka.SWF.RespondDecisionTaskCompleted" "libZSservicesZSamazonka-swfZSamazonka-swf" 'False) (C1 ('MetaCons "RespondDecisionTaskCompletedResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newRespondDecisionTaskCompletedResponse :: RespondDecisionTaskCompletedResponse Source #

Create a value of RespondDecisionTaskCompletedResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.