OpenBD Wiki

From OpenBD
Jump to: navigation, search

SqsAddPermission()

This function adds a permissions for a given registered label. See RemovePermission()

You can share your queues among different Amazon Accounts.

Amazon SQS

Contents

Parameters

sqsAddPermission( name, queueUrl, label, amzId, permission )

  • name: name for this datasource, previously registered using AmazonSQS()
  • queueUrl: the url of the queue you wish to delete
  • label: the label of the permission
  • amzId: the amazon ID of the account you wish to add
  • permission: the permission you want to give them

Possible values for permission:

  • *
  • SendMessage
  • ReceiveMessage
  • DeleteMessage
  • ChangeMessageVisibility
  • GetQueueAttributes

Returns

This function will return TRUE/FALSE

Example

<cfset AmazonSQS("testamz", "1WHJCG48Y89P4582", "bC6kfiW715mIenvtr537DcHndYmQwVf5l")>
<cfset sqsAddPermission( "testamz", queueUrl, "PublicList", "12312313123123", "*" )>

Engine Compatibility

  • OpenBD
  • BlueDragon

Personal tools