Interacting using the SDK

Switching tack a bit, let's talk about how we can programmatically add data into our new table from a Lambda function (or any other compute provider using an SDK). We'll step through the methods that are required to insert and query the data in a table. To get a good range of implementations, we'll give examples for Python, Node.js, Java, and C#. Like any other function, while using the SDK, we need to make sure we have it imported. For these examples, I'm going to assume we have imported it already and set our region correctly.

The first language to cover is Node.js. Here's how to insert a single item and then retrieve that same item. Notice that the number values are strings, but the Boolean value is not. The code ...

Get Learn AWS Serverless Computing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.