Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RespondDecisionTaskCompletedCommand

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.

import { SWFClient, RespondDecisionTaskCompletedCommand } from "@aws-sdk/client-swf"; // ES Modules import
// const { SWFClient, RespondDecisionTaskCompletedCommand } = require("@aws-sdk/client-swf"); // CommonJS import
const client = new SWFClient(config);
const command = new RespondDecisionTaskCompletedCommand(input);
const response = await client.send(command);
see

RespondDecisionTaskCompletedCommandInput for command's input shape.

see

RespondDecisionTaskCompletedCommandOutput for command's response shape.

see

config for SWFClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: RespondDecisionTaskCompletedCommandInput

Readonly middlewareStack