Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data RespondDecisionTaskCompleted = RespondDecisionTaskCompleted' {}
- newRespondDecisionTaskCompleted :: Text -> RespondDecisionTaskCompleted
- respondDecisionTaskCompleted_decisions :: Lens' RespondDecisionTaskCompleted (Maybe [Decision])
- respondDecisionTaskCompleted_executionContext :: Lens' RespondDecisionTaskCompleted (Maybe Text)
- respondDecisionTaskCompleted_taskToken :: Lens' RespondDecisionTaskCompleted Text
- data RespondDecisionTaskCompletedResponse = RespondDecisionTaskCompletedResponse' {
- newRespondDecisionTaskCompletedResponse :: RespondDecisionTaskCompletedResponse
Creating a Request
data RespondDecisionTaskCompleted Source #
Input data for a TaskCompleted response to a decision task.
See: newRespondDecisionTaskCompleted
smart constructor.
RespondDecisionTaskCompleted' | |
|
Instances
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_executionContext :: Lens' RespondDecisionTaskCompleted (Maybe Text) Source #
User defined context to add to workflow execution.
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 #
See: newRespondDecisionTaskCompletedResponse
smart constructor.
Instances
newRespondDecisionTaskCompletedResponse :: RespondDecisionTaskCompletedResponse Source #
Create a value of RespondDecisionTaskCompletedResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.