How do I pass arguments to AWS Lambda functions using GET requests?

前端 未结 2 1128
误落风尘
误落风尘 2021-02-02 10:30

Say I want to pass val1 and val2 in the URL string when making a GET request from my Api gateway endpoint to my Lambda function:

https://xyz.execute-api.amazonaw         


        
2条回答
  •  无人共我
    2021-02-02 10:43

    All the information can be retrieved from event object.

    For example : The value of a variable foo can be retrieved from the event as event["foo"].

提交回复
热议问题