OpenBD Wiki

From OpenBD
Jump to: navigation, search

AmazonSQS()

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

Contents

Parameters

AmazonSQS( 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 AmazonSQS("testamz", "1WHJCG48Y89P4582", "bC6kfiW715mIenvtr537DcHndYmQwVf5l")>
<cfset queues = ListQueues( "testamz" )>

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