UNPKG

@wmfs/statebox

Version:

Orchestrate Node functions using Amazon States Language

29 lines (28 loc) 607 B
{ "Comment": "Example of the Map State", "StartAt": "Validate-All", "States": { "Validate-All": { "Type": "Map", "InputPath": "$.detail", "ItemsPath": "$.shipped", "MaxConcurrency": 0, "Iterator": { "StartAt": "Pass", "States": { "Pass": { "Type": "Pass", "Next": "Validate" }, "Validate": { "Type": "Task", "Resource": "module:incrementQuantity", "End": true } } }, "ResultPath": "$.detail.shipped", "End": true } } }