Sfoglia il codice sorgente

add py/Event-sns.py.

xdc 5 anni fa
parent
commit
04f2c64245
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. 9 0
      py/Event-sns.py

+ 9 - 0
py/Event-sns.py

@@ -0,0 +1,9 @@
+import json
+import boto3
+
+
+def lambda_handler(event,context):
+    name = event['Records'][0]['Sns']['MessageAttributes']['name']['Value']
+    msg = event['Records'][0]['Sns']['Message']
+
+