【发布时间】:2021-05-21 17:39:02
【问题描述】:
我有一个带有地图任务的阶梯函数,众所周知,地图必须在 ItemsPath 中的数组上工作,我如何将整个输入传递给 lambda 而不仅仅是数组。
{"StartAt": "Find","States": {
"Find": {
"Type": "Map",
"MaxConcurrency": 0,
"InputPath": "$",
"ItemsPath": "$.Payload.contacts",
"Iterator": {
"StartAt": "func",
"States": {
"func": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-1:....",
"Parameters": {
"Input": {
"Payload":{
"contact.$": "$"
}
}
},
"End": true
}
}
},
"ResultPath": "$.Input",
"End": true
}}} ,
我希望在事件参数中传递整个输入
【问题讨论】: