This function registers a new datasource for using the Amazon SimpleDB service within CFML.
Contents |
AmazonSimpleDB( name, access key, private key )
This function returns back the name of the datasource.
<cfset AmazonSimpleDB("testamz", "1WHJCG48Y89P4582", "bC6kfiW715mIenvtr537DcHndYmQwVf5l")>
<cfquery dbtype="amazon" datasource="testamz">
insert into testDomain ("ItemName","name","date","sex","age")
values ( "MyItem", "Susan", <cfqueryparam value="#now()#">, "female", 21 )
</cfquery>
This function is required to register a new service and will persist as long as the engine remains active. Please note this function does not test to see if the credentials are valid at this time. Only when they are first used, are they tested.
It is advisable not to embed your access identifiers in a place where they can be readily available to others.