IcsSQS Common Library
IcsSqs: Library for SQS
This is the IcsSQS common library. |
-
class opslib.icssqs.IcsSqs(region, **kwargs)[source]
ICS Library for SQS
-
__dict__ = dict_proxy({'__dict__': <attribute '__dict__' of 'IcsSqs' objects>, '__module__': 'opslib.icssqs', '__doc__': '\n ICS Library for SQS\n ', 'create_queue': <function create_queue at 0x5969b90>, '__weakref__': <attribute '__weakref__' of 'IcsSqs' objects>, 'delete_queue': <function delete_queue at 0x5969c80>, '__init__': <function __init__ at 0x5969b18>, 'get_queues': <function get_queues at 0x5969c08>})
-
__init__(region, **kwargs)[source]
-
__module__ = 'opslib.icssqs'
-
__weakref__
list of weak references to the object (if defined)
-
create_queue(name, visibility_timeout=None)[source]
Create an SQS Queue.
Parameters: |
- name (string) – The name of the new queue. Names are scoped to an account and need to be unique within that account.
- visibility_timeout (int) – The default visibility timeout for all messages written in the queue.
|
Returns: | The newly created queue
|
Type: | boto.sqs.queue.Queue
|
-
delete_queue(name)[source]
Delete the queue
Parameters: | name (string) – According to the given name to delete the queue |
Returns: | The result of this action |
Type: | bool |
-
get_queues(name='')[source]
If name is empty, it will get all queues, else it retrieves the queue
with the given name.
Parameters: | name (string) – The name of the queue to retrieve. |
Returns: | The requested queue(list of queues), or None if no match was found |
Type: | boto.sqs.queue.Queue or None or list of boto.sqs.queue.Queue instances |