You will first define to which HTTP methods your REST API will respond. You can bind different methods to different Lambda functions or other services.
In the Resource list, choose /slurm if not already selected. Click on the Actions dropdown menu then select Create Method.
Select ANY from the dropdown menu and validate. This is basically setting the ANY method for HTTP which allows you to use a single API method setup for all the supported HTTP methods.
In the /slurm - ANY - Setup section tick the Use Lambda Proxy integration, select the region where your function resides (us-east-1 in the screenshot, yours may differ). Then add the name of your lambda function in the Lambda Function field. Leave all other values to default and click Save.
You will see a message on an hovering message, ignore it and click OK. You will be redirected to a workflow diagram showing how the API and your function will be interacting together. The last step ahead of you before using your API is to deploy it.