Class RightAws::Sqs::Grantee
In: lib/sqs/right_sqs.rb
Parent: Object

Methods

drop   grant   new   revoke  

Attributes

email  [RW] 
id  [RW] 
name  [RW] 
perms  [RW] 
queue  [RW] 

Public Class methods

Creates new Grantee instance. To create new grantee for queue use:

  grantee = Grantee.new(queue, grantee@email.address)
  grantee.grant('FULLCONTROL')

Public Instance methods

Revokes all permissions for this grantee. Returns true

Adds permissions for grantee. Permission: ‘FULLCONTROL’ | ‘RECEIVEMESSAGE’ | ‘SENDMESSAGE’. The caller must have set the email instance variable.

Revokes permissions for grantee. Permission: ‘FULLCONTROL’ | ‘RECEIVEMESSAGE’ | ‘SENDMESSAGE’. Default value is ‘FULLCONTROL’. User must have +@email+ or +@id+ set. Returns true.

[Validate]