Whatever message this page gives is out now! Go check it out!
serviceHandle.createTable(requestParameters)<cfscript>
cred = {
"credentialAlias" : "myalias",
"vendorName" : "AWS",
"region" : "us-east-2",
"secretAccessKey" : "xxxxx",
"accessKeyId" : "xxxx"
}
config = {
"serviceName" = "DYNAMODB"
}
dynamo = getCloudService(cred, config)
// create table movies
tableStruct={
TableName : "MoviesNew",
KeySchema:[
{ AttributeName: "year", KeyType: "HASH"}, // Partition key
{ AttributeName: "title", KeyType: "RANGE"} // Sort key
],
AttributeDefinitions:[
{ AttributeName: "year", AttributeType: "N" },
{ AttributeName: "title", AttributeType: "S" }
],
ProvisionedThroughput:{
ReadCapacityUnits: 10,
WriteCapacityUnits: 10
}
}
createTableResponse=dynamo.createTable(tableStruct,{"customResponse": true})
writeDump(createTableResponse)
</cfscript>