summaryrefslogtreecommitdiff
path: root/boto/sqs
diff options
context:
space:
mode:
Diffstat (limited to 'boto/sqs')
-rw-r--r--boto/sqs/__init__.py4
-rw-r--r--boto/sqs/connection.py5
-rw-r--r--boto/sqs/queue.py2
3 files changed, 7 insertions, 4 deletions
diff --git a/boto/sqs/__init__.py b/boto/sqs/__init__.py
index 29bd3cfd..ccad732e 100644
--- a/boto/sqs/__init__.py
+++ b/boto/sqs/__init__.py
@@ -31,9 +31,11 @@ def regions():
:rtype: list
:return: A list of :class:`boto.sqs.regioninfo.RegionInfo`
"""
+ from boto.sqs.connection import SQSConnection
return get_regions(
'sqs',
- region_cls=SQSRegionInfo
+ region_cls=SQSRegionInfo,
+ connection_cls=SQSConnection
)
diff --git a/boto/sqs/connection.py b/boto/sqs/connection.py
index f4341e32..e2f59d79 100644
--- a/boto/sqs/connection.py
+++ b/boto/sqs/connection.py
@@ -45,7 +45,7 @@ class SQSConnection(AWSQueryConnection):
is_secure=True, port=None, proxy=None, proxy_port=None,
proxy_user=None, proxy_pass=None, debug=0,
https_connection_factory=None, region=None, path='/',
- security_token=None, validate_certs=True):
+ security_token=None, validate_certs=True, profile_name=None):
if not region:
region = SQSRegionInfo(self, self.DefaultRegionName,
self.DefaultRegionEndpoint)
@@ -58,7 +58,8 @@ class SQSConnection(AWSQueryConnection):
self.region.endpoint, debug,
https_connection_factory, path,
security_token=security_token,
- validate_certs=validate_certs)
+ validate_certs=validate_certs,
+ profile_name=profile_name)
self.auth_region_name = self.region.name
def _required_auth_capability(self):
diff --git a/boto/sqs/queue.py b/boto/sqs/queue.py
index 6bcae489..162ec93c 100644
--- a/boto/sqs/queue.py
+++ b/boto/sqs/queue.py
@@ -365,7 +365,7 @@ class Queue(object):
Deprecated. This is the old 'count' method that actually counts
the messages by reading them all. This gives an accurate count but
is very slow for queues with non-trivial number of messasges.
- Instead, use get_attribute('ApproximateNumberOfMessages') to take
+ Instead, use get_attributes('ApproximateNumberOfMessages') to take
advantage of the new SQS capability. This is retained only for
the unit tests.
"""