var AWS = require("aws-sdk");
AWS.config.update({
region: "us-east-1",
endpoint: "https://dynamodb.us-east-1.amazonaws.com "
});
var docClient = new AWS.DynamoDB.DocumentClient();
var options = {
TableName: "gpMES_Interfaces",
Key:{
InterfaceId: 2
}
};
docClient.get(options, function(err, data) {
if (err) {
console.error("Unable to read item. Error JSON:", JSON.stringify(err, null, 2));
} else {
console.log("GetItem succeeded:", JSON.stringify(data, null, 2));
}
callback(err, data);
});