{ "Comment": "ItemBatcher can specify batchSize or path but not both", "StartAt": "Map", "States": { "Map": { "Type": "Map", "ItemBatcher": { "MaxItemsPerBatch": 2, "MaxInputBytesPerBatch": 131072, "BatchInput": { "inputKey": "inputValue" } }, "ItemProcessor": { "ProcessorConfig": { "Mode": "DISTRIBUTED", "ExecutionType": "EXPRESS" }, "StartAt": "LambdaTask", "States": { "LambdaTask": { "Type": "Task", "Resource": "arn:aws:states:::lambda:invoke", "OutputPath": "$.Payload", "Parameters": { "Payload.$": "$", "FunctionName": "arn:aws:lambda:us-east-2:123456789012:function:processCSVData" }, "End": true } } }, "Label": "Map", "End": true } } }