Skip to content

SendTaskSuccess

Source: src/AWS/StepFunctions/SendTaskSuccess.ts

Runtime binding for states:SendTaskSuccess.

Completes a callback-pattern task (.waitForTaskToken) or an Activity task successfully. Bind without arguments for task tokens issued by service-integration Task states (IAM cannot scope those), or pass an Activity to scope access to its tasks.

const sendTaskSuccess = yield* StepFunctions.SendTaskSuccess();
yield* sendTaskSuccess({
taskToken: token,
output: JSON.stringify({ approved: true }),
});