Explorar o código

update py/Event-https.py.

xdc %!s(int64=5) %!d(string=hai) anos
pai
achega
89221b566e
Modificáronse 1 ficheiros con 12 adicións e 0 borrados
  1. 12 0
      py/Event-https.py

+ 12 - 0
py/Event-https.py

@@ -0,0 +1,12 @@
+import json
+import boto3
+
+
+def lambda_handler(event, context):
+
+    msg = json.loads(event['body'])['Message']
+    name = json.loads(event['body'])['MessageAttributes']['name']['Value']
+    order_orgain = json.loads(event['body'])['MessageAttributes']['order']['Value']
+
+    order = f"{order_orgain.split(' ')[0][-1]}{order_orgain.split(' ')[1][-1]}{order_orgain.split(' ')[2][-1]}"
+