Next, we’ll set up the API Gateway to interact with the Lambda functions created in the previous section:
Open API Gateway console
Scroll down and click Build of REST API pattern
Select REST for Protocol
Click on the API just created, then select Create resource
Enter resource name, such as: books
So we have created a new REST API and resource for it. Next, we will create methods to interact with Lambda functions and set them: