1 個回答
- 最新
- 最多得票
- 最多評論
1
To specify that a parameter use a path to reference a JSON node in the input, end the parameter name with .$ (from doc).
In your case:
"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 官方已更新 1 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前
That's exactly what I was looking for, now sure how I missed it. Thanks!