lib/sqs/right_sqs_interface.rb
# Revokes permission from user. Returns +true+ or an exception.
#
#  sqs.remove_grant('http://queue.amazonaws.com/ZZ7XXXYYYBINS/my_awesome_queue', 'my_awesome_friend@gmail.com', 'FULLCONTROL') #=> true
#
Revokes permission from user. Returns +true+ or an exception.
Revokes permission from user . Returns + true + or an exception .
def remove_grant(queue_url, grantee_email_address_or_id, permission = nil)
      grantee_key = grantee_email_address_or_id.include?('@') ? 'Grantee.EmailAddress' : 'Grantee.ID'
      req_hash = generate_request('RemoveGrant', 
                                  grantee_key  => grantee_email_address_or_id,
                                  'Permission' => permission,
                                  :queue_url   => queue_url)
      request_info(req_hash, SqsStatusParser.new(:logger => @logger))
    rescue
      on_exception
    end
def remove_grant ( queue_url , grantee_email_address_or_id , permission = nil ) grantee_key = grantee_email_address_or_id . include? ( '@' ) ? 'Grantee.EmailAddress' : 'Grantee.ID' req_hash = generate_request ( 'RemoveGrant' , grantee_key => grantee_email_address_or_id , 'Permission' => permission , :queue_url => queue_url ) request_info ( req_hash , SqsStatusParser . new ( :logger => @logger ) ) rescue on_exception end
Revokes permission from user.
Revokes permission from user .
queue_url
<not_specific>
grantee_email_address_or_id
<not_specific>
permission
<not_specific>