[ // Test 0 ----------------------------------------- { "input": { "foo": "value of foo", "object": { "array": [1, 2, 3], "number": 42 } }, "output": { "foo": "value of foo", "object": { "array": [1, 2, 3], "number": 42 } }, "task_behavior": { "arn:aws:lambda:us-east-1:123456789012:function:foo": { "output": "The output of the function", } }, "states": ["Hello", "Goodbye"], }, // Test 1 ----------------------------------------- { "input": { "foo": { "array": [1, 2, 3], "number": 42 } }, "output": { "foo": { "array": [1, 2, 3], "number": 42 }, }, "task_behavior": { "arn:aws:lambda:us-east-1:123456789012:function:foo": { "output": "The output of the function", } }, "states": ["Hello", "Goodbye"], }, // Test 2 ----------------------------------------- { "input": "string as input, causes an error here!", "task_behavior": { "arn:aws:lambda:us-east-1:123456789012:function:foo": { "output": "The output of the function", } }, "states": ["Hello"], "error": { "Error": "States.TaskFailed", "Cause": "Malformed input parameters: The 'Parameters' field can't be evaluated:*", } }, // Test 3 ----------------------------------------- { "input": null, "error": { "Error": "States.TaskFailed", "Cause": "Malformed input parameters*", }, "states": ["Hello"], } ]