lib/sqs/right_sqs_interface.rb
# Adds grants for user (identified by email he registered at Amazon). Returns +true+ or an exception. Permission = 'FULLCONTROL' | 'RECEIVEMESSAGE' | 'SENDMESSAGE'.
#
#  sqs.add_grant('http://queue.amazonaws.com/ZZ7XXXYYYBINS/my_awesome_queue', 'my_awesome_friend@gmail.com', 'FULLCONTROL') #=> true
#
Adds grants for user (identified by email he registered at Amazon). Returns +true+ or an exception.
Adds grants for user ( identified by email he registered at Amazon ) . Returns + true + or an exception .
def add_grant(queue_url, grantee_email_address, permission = nil)
      req_hash = generate_request('AddGrant', 
                                  'Grantee.EmailAddress' => grantee_email_address,
                                  'Permission'           => permission,
                                  :queue_url             => queue_url)
      request_info(req_hash, SqsStatusParser.new(:logger => @logger))
    rescue
      on_exception
    end
def add_grant ( queue_url , grantee_email_address , permission = nil ) req_hash = generate_request ( 'AddGrant' , 'Grantee.EmailAddress' => grantee_email_address , 'Permission' => permission , :queue_url => queue_url ) request_info ( req_hash , SqsStatusParser . new ( :logger => @logger ) ) rescue on_exception end
Adds grants for user (identified by email he registered at Amazon).
Adds grants for user ( identified by email he registered at Amazon ) .
queue_url
<not_specific>
grantee_email_address
<not_specific>
permission
<not_specific>