python - What is difference in AWS lambda and AWS lambda proxy? -
i new aws. know layman question. trying pass , accept parameters in aws lambda proxy. able in aws lambda using body mapping
template, there way in can querystring
map in aws lambda in lambda proxy
if using lambda proxy, api gateway maps entire client request input event parameter of backend lambda function follows.
{ "resource": "resource path", "path": "path parameter", "httpmethod": "incoming request's method name" "headers": {incoming request headers} "querystringparameters": {query string parameters } "pathparameters": {path parameters} "stagevariables": {applicable stage variables} "requestcontext": {request context, including authorizer-returned key-value pairs} "body": "a json string of request payload." "isbase64encoded": "a boolean flag indicate if applicable request payload base64-encode"}
refer setup proxy integration documentation of aws.
here example of how parse event data such query string.
Comments
Post a Comment