URL: /test/{userName}
In AWS Lambda function, How can I get the {username}
path parameter value.
I am calling lambda function through AWS API gaetway.
URL: /test/{userName}
In AWS Lambda function, How can I get the {username}
path parameter value.
I am calling lambda function through AWS API gaetway.
If you are using AWS integration type:
Use a mapping template to send $input.params('username') property in the request body to your Lambda function.
If you are using AWS_PROXY integration type:
You can access the path parameters via the "pathParameters" property of the incoming event.