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__ = <dictproxy object at 0x4b9d600>
__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

Indices and tables

Table Of Contents

Previous topic

IcsSecurityGroup Common Library

Next topic

IcsUtils.IcsAlert Common Library

This Page