API Gateway examples using SDK for JavaScript (v3) (original) (raw)
The following code examples show you how to perform actions and implement common scenarios by using the AWS SDK for JavaScript (v3) with API Gateway.
Scenarios are code examples that show you how to accomplish specific tasks by calling multiple functions within a service or combined with other AWS services.
Each example includes a link to the complete source code, where you can find instructions on how to set up and run the code in context.
Scenarios
The following code example shows how to create a serverless application that lets users manage photos using labels.
SDK for JavaScript (v3)
Shows how to develop a photo asset management application that detects labels in images using Amazon Rekognition and stores them for later retrieval.
For complete source code and instructions on how to set up and run, see the full example on GitHub.
For a deep dive into the origin of this example see the post on AWS Community.
Services used in this example
- API Gateway
- DynamoDB
- Lambda
- Amazon Rekognition
- Amazon S3
- Amazon SNS
The following code example shows how to create an AWS Lambda function invoked by Amazon API Gateway.
SDK for JavaScript (v3)
Shows how to create an AWS Lambda function by using the Lambda JavaScript runtime API. This example invokes different AWS 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 onGitHub.
This example is also available in theAWS SDK for JavaScript v3 developer guide.
Services used in this example
- API Gateway
- DynamoDB
- Lambda
- Amazon SNS
SDK for JavaScript (v3)
Aurora
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.