I have a lambda function (node.js) that needs to perform a transaction on two DynamoDB tables.
let ddb = new AWS.DynamoDB.DocumentClient();
ddb.transactWrite(params, function(err, data) {
if (err) {
...
}
else {
...
}
});
when I try to use it I receive the error:
ddb.transactWrite is not a function
I also tried to use AWS.DynamoDB.transactWriteItems() with the same result
