DynamoDB - with AWS SDK
Given this JavaScript code snippet using DynamoDB SDK, what will be the output?
const { DynamoDBClient, GetItemCommand } = require("@aws-sdk/client-dynamodb");
const client = new DynamoDBClient({ region: "us-east-1" });
async function getItem() {
const command = new GetItemCommand({
TableName: "Users",
Key: { "UserId": { S: "123" } }
});
const response = await client.send(command);
console.log(response.Item);
}
getItem();