1 個回答
- 最新
- 最多得票
- 最多評論
0
The blog post doesn't explicitly provide example test data to test this function, unlike the other two functions in the post. This is because the function is relying on the data structure provided by the SNS invocation. SNS will invoke this function when a message is received and provide said message to the function; event["Records"][0]["Sns"]["Message"]
is where the message will be found.
If you would like to run a test of this function, you will need to emulate the JSON data structure expected by the function:
{
"Records": [
{
"Sns": {
"Message": "ENTER RELEVANT DATA HERE"
}
}
]
}
已回答 2 年前
相關內容
- 已提問 1 年前
- AWS 官方已更新 10 個月前
- AWS 官方已更新 3 年前
- AWS 官方已更新 1 年前