소스 검색

add py/Event-sns.py.

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']
+
+