Explorar o código

add py/Event-sns.py.

xdc %!s(int64=5) %!d(string=hai) anos
pai
achega
04f2c64245
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  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']
+
+