AWS Step Function:忽略先前状态的输入,并使用“参数”作为输入
因此,我的状态定义为以下。
"process-abc": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-1:my-lambda...",
"Parameters": {
"type": "my-type",
},
但是,当我运行步进功能时,我在状态输入中没有看到“ type”:“ my-type”,
,我只将输入视为先前状态输出的内容。
我如何仅通过“ type”:“ my-type”
作为当前状态的唯一输入?
So I have a state defined as below.
"process-abc": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-1:my-lambda...",
"Parameters": {
"type": "my-type",
},
However, when I run step function, I don't see the "type": "my-type",
in the state input, I only see the input as something from the previous state output.
How can I only pass "type": "my-type"
as the only input into the current state?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您没有定义任何结果路径,则默认情况下下一个状态的输入是上一个状态的输出。
请参阅 https://docs.aws.amazon .com/step-functions/latest/dg/input-output-resultpath.html
可以将状态1的结果路径设置为
null
来忽略状态1结果并传递状态1输入到状态2。If you did not define any result path, by default input to the next state is the output of the previous state.
See https://docs.aws.amazon.com/step-functions/latest/dg/input-output-resultpath.html
You can set the result path of the state 1 to
null
to ignore the state 1 result and pass the state 1 input to the state 2.