1 回答
- 最新
- 投票最多
- 评论最多
0
【以下的回答经过翻译处理】 要指定一个参数使用路径来引用输入中的JSON节点,请在参数名称末尾加上 .$(来自[文档](https://docs.aws.amazon.com/step-functions/latest/dg/connect-parameters.html))。
在你的场景下,可以参考如下范例:
"Step Name": {
"Type": "Task",
"Resource": "arn:aws:states:::sns:publish",
"Parameters": {
"TopicArn": "${TopicARN}",
"Message": {
"id.$": "$.id",
"param1.$": "$.param1",
"param2.$": "$.param2",
"metadata.$": "$"
},
"MessageAttributes": {
"type": {
"DataType": "String",
"StringValue.$": "$.type"
},
"id": {
"DataType": "String",
"StringValue.$": "$.id"
}
}
},
"End": true
}
相关内容
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前
- AWS 官方已更新 3 年前