Whatever message this page gives is out now! Go check it out!
serviceHandle.deleteItem(requestParameters)<cfscript>
cred = {
"credentialAlias" : "myalias",
"vendorName" : "AWS",
"region" : "us-east-2",
"secretAccessKey" : "xxxxx",
"accessKeyId" : "xxxx"
}
config = {
"serviceName" = "DYNAMODB"
}
dynamo = getCloudService(cred, config)
tableName="YearlyProductCatalog"
// items to delete
id=550
title="My Books Title"
// delete the item in the table
deleteItemStruct={
"TableName":"#tableName#",
"Key":{
"id":{"N":"#id#"},
"title":{"S":"#title#"}
},
"ReturnValues": "ALL_OLD"
}
try{
deleteItemResponse=dynamo.deleteItem(deleteItemStruct,{"hasType": true})
writeOutput("Item deleted successfully")
writeDump(deleteItemResponse)
}
catch(any e){
writeDump(e)
}
</cfscript>