1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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"
}
}
]
}
répondu il y a 2 ans
Contenus pertinents
- demandé il y a 2 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 4 mois
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans