How to pass parameters to an AWS Lambda Function using Python How to pass parameters to an AWS Lambda Function using Python python python

How to pass parameters to an AWS Lambda Function using Python


Pass in parameter values in a mapping template:

{    "startStop":"$input.params('startStop')",    "vertical":"$input.params('vertical')"}

Read parameter values via event Object:

    startStop = event['startStop']    vertical = event['vertical']


You can use the queryStringParameters on event object.

request_data = event['queryStringParameters']startStop = request_data['startStop']vertical = request_data['vertical']