xdc пре 5 година
родитељ
комит
04f2c64245
1 измењених фајлова са 9 додато и 0 уклоњено
  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']
+
+