1

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.

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.