Python boto.sqs() Examples
The following are 4
code examples of boto.sqs().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
boto
, or try the search function
.
![](https://www.programcreek.com/common/static/images/search.png)
Example #1
Source File: aws_connections.py From mycroft with MIT License | 5 votes |
def get_sqs_connection(): ''' :returns: sqs connection ''' return boto.sqs.connect_to_region( read_string('aws_config.region'), **get_boto_creds() )
Example #2
Source File: context.py From toil with Apache License 2.0 | 5 votes |
def sqs(self): """ :rtype: SQSConnection """ if self.__sqs is None: self.__sqs = self.__aws_connect(sqs) return self.__sqs
Example #3
Source File: aws.py From build-relengapi with Mozilla Public License 2.0 | 5 votes |
def get_sqs_queue(self, region_name, queue_name): key = (region_name, queue_name) if key in self._queues: return self._queues[key] sqs = self.connect_to('sqs', region_name) queue = sqs.get_queue(queue_name) if not queue: raise RuntimeError("no such queue %r in %s" % (queue_name, region_name)) self._queues[key] = queue return queue
Example #4
Source File: plumbum.py From cloudwatch-to-graphite with Apache License 2.0 | 5 votes |
def list_sqs(region, filter_by_kwargs): """List all SQS Queues.""" conn = boto.sqs.connect_to_region(region) queues = conn.get_all_queues() return lookup(queues, filter_by=filter_by_kwargs)