New API Documentation - Developer Preview Available
We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.
Class RespondDecisionTaskCompletedCommandProtected
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.
Example
Use a bare-bones client and the command you need to make an API call.
Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.
Used by deciders to tell the service that the DecisionTask identified by the
taskToken
has successfully completed. Thedecisions
argument specifies the list of decisions made while processing the task.A
DecisionTaskCompleted
event is added to the workflow history. TheexecutionContext
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 thedecisions
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.Example
Use a bare-bones client and the command you need to make an API call.
Param
RespondDecisionTaskCompletedCommandInput
Returns
RespondDecisionTaskCompletedCommandOutput
See
input
shape.response
shape.config
shape.Throws
OperationNotPermittedFault (client fault)
Returned when the caller doesn't have sufficient permissions to invoke the action.
Throws
UnknownResourceFault (client fault)
Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.
Throws
SWFServiceException
Base exception class for all service exceptions from SWF service.