Whatever message this page gives is out now! Go check it out!
serviceHandle.scan(requestParameters)<cfscript>
cred = {
"credentialAlias" : "myalias",
"vendorName" : "AWS",
"region" : "us-east-2",
"secretAccessKey" : "xxxxx",
"accessKeyId" : "xxxx"
}
conf={
"serviceName"="DYNAMODB"
}
dynamo=getCloudService(cred, conf)
tableName="MusicTableForDemo"
scanStruct = {
"TableName": "#tableName#"
}
scanResponse=dynamo.scan(scanStruct,{"customResponse":true})
arr=scanResponse.items
writeOutput("<b>List of songs</b>" & "<br/>")
mapFunction=function(item){
writeOutput(item.SongTitle & "<br/>")
}
arr.map(mapFunction)
</cfscript>