📅  最后修改于: 2022-03-11 15:02:14.792000             🧑  作者: Mango
try {
const data = await dynamodb.put(paramsPut).promise()
console.log("Success")
console.log(data)
return data
} catch (err) {
console.log("Failure", err.message)
// there is no data here, you can return undefined or similar
}