Use API Gateway to invoke a Lambda function - Amazon SDK for JavaScript
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

The Amazon SDK for JavaScript V3 API Reference Guide describes in detail all the API operations for the Amazon SDK for JavaScript version 3 (V3).

Use API Gateway to invoke a Lambda function

SDK for JavaScript (v3)

Shows how to create an Amazon Lambda function by using the Lambda JavaScript runtime API. This example invokes different Amazon services to perform a specific use case. This example demonstrates how to create a Lambda function invoked by Amazon API Gateway that scans an Amazon DynamoDB table for work anniversaries and uses Amazon Simple Notification Service (Amazon SNS) to send a text message to your employees that congratulates them at their one year anniversary date.

For complete source code and instructions on how to set up and run, see the full example on GitHub.

This example is also available in the Amazon SDK for JavaScript v3 developer guide.

Services used in this example
  • API Gateway

  • DynamoDB

  • Lambda

  • Amazon SNS