Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Unified Diff: third_party/boto/boto/sns/connection.py

Issue 698893003: Update checked in version of gsutil to version 4.6 (Closed) Base URL: http://dart.googlecode.com/svn/third_party/gsutil/
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/boto/boto/sns/__init__.py ('k') | third_party/boto/boto/sqs/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/boto/boto/sns/connection.py
===================================================================
--- third_party/boto/boto/sns/connection.py (revision 33376)
+++ third_party/boto/boto/sns/connection.py (working copy)
@@ -48,15 +48,18 @@
requests, and handling error responses. For a list of available
SDKs, go to `Tools for Amazon Web Services`_.
"""
- DefaultRegionName = 'us-east-1'
- DefaultRegionEndpoint = 'sns.us-east-1.amazonaws.com'
- APIVersion = '2010-03-31'
+ DefaultRegionName = boto.config.get('Boto', 'sns_region_name', 'us-east-1')
+ DefaultRegionEndpoint = boto.config.get('Boto', 'sns_region_endpoint',
+ 'sns.us-east-1.amazonaws.com')
+ APIVersion = boto.config.get('Boto', 'sns_version', '2010-03-31')
+
def __init__(self, aws_access_key_id=None, aws_secret_access_key=None,
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 = RegionInfo(self, self.DefaultRegionName,
self.DefaultRegionEndpoint,
@@ -69,7 +72,8 @@
self.region.endpoint, debug,
https_connection_factory, path,
security_token=security_token,
- validate_certs=validate_certs)
+ validate_certs=validate_certs,
+ profile_name=profile_name)
def _build_dict_as_list_params(self, params, dictionary, name):
"""
@@ -264,7 +268,7 @@
:type protocol: string
:param protocol: The protocol used to communicate with
the subscriber. Current choices are:
- email|email-json|http|https|sqs|sms
+ email|email-json|http|https|sqs|sms|application
:type endpoint: string
:param endpoint: The location of the endpoint for
@@ -274,7 +278,10 @@
* For http, this would be a URL beginning with http
* For https, this would be a URL beginning with https
* For sqs, this would be the ARN of an SQS Queue
- * For sms, this would be a phone number of an SMS-enabled device
+ * For sms, this would be a phone number of an
+ SMS-enabled device
+ * For application, the endpoint is the EndpointArn
+ of a mobile app and device.
"""
params = {'TopicArn': topic,
'Protocol': protocol,
« no previous file with comments | « third_party/boto/boto/sns/__init__.py ('k') | third_party/boto/boto/sqs/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698