Slide 15
Slide 15 text
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
リクエストイベントフォーマット
{
"version": "2.0",
"routeKey": "$default",
"rawPath": "/",
"rawQueryString": "",
"headers": {
"x-amzn-trace-id": "Root=1-6252dbdd-2a88d899750a6e1f3",
"x-forwarded-proto": "https",
"host": "fcodhubyw.lambda-url.ap-northeast-1.on.aws",
"x-forwarded-port": "443",
"content-type": "application/json",
"x-forwarded-for": " 27.0.4.123",
"accept": "*/*",
"user-agent": "curl/7.71.1"
},
"requestContext": {
"accountId": "anonymous",
"apiId": "shjhdrxa6xyfze4amalxzfcodm0hubyw",
"domainName": "fcodhubyw.lambda-url.ap-northeast-1.on.aws ",
"domainPrefix": "shjhdrxa6xyfze4amalxzfcodm0hubyw",
"http": {
"method": "POST",
"path": "/",
"protocol": "HTTP/1.1",
"sourceIp": "27.0.4.123",
"userAgent": "curl/7.71.1"
},
"requestId": "84545120-9bda-41af-9b45-6bd9fb4503a6",
"routeKey": "$default",
"stage": "$default",
"time": "10/Apr/2022:13:30:05 +0000",
"timeEpoch": 1649597405529
},
"body": "hello",
"isBase64Encoded": false
}
リクエストのContent-typeを application/json
または text/* に設定しないと、bodyがデフォルト
でbase64でエンコードされる