xdc 5 жил өмнө
parent
commit
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']
+
+