I have a code at my local machine, with which I want to call an AWS Lambda function.

I have configured AWS API Gateway as doorway to Lambda function, but I am concerned about security when sending credentials as query string parameters.

So could anyone suggest nest approach to pass credentials to Lambda function even if there is another way than API Gateway, but I want to send it dynamically.