OpenBD Wiki

From OpenBD
Jump to: navigation, search

AmazonSimpleDB()

This function registers a new datasource for using the Amazon SimpleDB service within CFML.

Contents

Parameters

AmazonSimpleDB( name, access key, private key )

  • name: symbolic name for this datasource
  • access key: this is your Amazon access key, as found in your AWS Access Identifiers section
  • private key: this is your private Amazon access key

Returns

This function returns back the name of the datasource.

Example

<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>

Notes

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.

Engine Compatibility

  • OpenBD
  • BlueDragon

Personal tools