AWS DynamoDB
With this integration you can query, insert and modify data from your DynamoDB tables.

Official Websitehttps://aws.amazon.com/dynamodb/
Documentationhttps://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-dynamodb/index.html
NodeJS packagehttps://www.npmjs.com/package/@aws-sdk/client-dynamodb
Version3.204.0
TagsNoSQL, database, Saas
Credential configuration
To fill the form params you need the Access key id
and the Secret access key
of the Programatic access
user you want to use. This user needs the permissions
to have access to DynamoDB to work properly. If you need to create the user,
you can see how to do it here.
In the extra options field you can pass any of the params you can find here.
Here you have an example of a filled credential configuration form in YepCode:

AWS DynamoDB snippets available in YepCode editor
note
The title is the triggering text for YepCode to autocomplete the script
Integration
New integration from credential
const awsDynamodbClient = yepcode.integration.awsDynamodb("credential-slug");
New integration from plain authentication data
const { DynamoDBClient } = require("@aws-sdk/client-dynamodb");
const awsDynamodbClient = new DynamoDBClient({
credentials: {
accessKeyId: "accessKeyId",
secretAccessKey: "secretAccessKey",
},
});
List tables
List tables
const { ListTablesCommand } = require("@aws-sdk/client-dynamodb");
const listTablesCommand = new ListTablesCommand({});
const listTablesResponse = await awsDynamodbClient.send(listTablesCommand);
console.log(listTablesResponse);
Get all table items
Get all table items
const { ScanCommand } = require("@aws-sdk/client-dynamodb");
const scanCommand = new ScanCommand({ TableName: "table-name" });
const scanResponse = await awsDynamodbClient.send(scanCommand);
console.log(scanResponse.Items);
Put item
Put item
const { PutItemCommand } = require("@aws-sdk/client-dynamodb");
const putItemCommand = new PutItemCommand({
TableName: "table-name",
Item: {
"table-primary-key-name": { S: "table-primary-key-value" },
someOther: { S: "{5:other-value}" },
},
});
const putItemResponse = await awsDynamodbClient.send(putItemCommand);
console.log(putItemResponse);
Get item
Get item
const { GetItemCommand } = require("@aws-sdk/client-dynamodb");
const getItemCommand = new GetItemCommand({
TableName: "table-name",
Key: {
"table-primary-key-name": { S: "table-primary-key-value" },
},
});
const getItemResponse = await awsDynamodbClient.send(getItemCommand);
console.log(getItemResponse);