summaryrefslogtreecommitdiff
path: root/boto/ses/connection.py
diff options
context:
space:
mode:
Diffstat (limited to 'boto/ses/connection.py')
-rw-r--r--boto/ses/connection.py41
1 files changed, 20 insertions, 21 deletions
diff --git a/boto/ses/connection.py b/boto/ses/connection.py
index ed69ad29..d9774125 100644
--- a/boto/ses/connection.py
+++ b/boto/ses/connection.py
@@ -48,13 +48,13 @@ class SESConnection(AWSAuthConnection):
self.DefaultRegionEndpoint)
self.region = region
super(SESConnection, self).__init__(self.region.endpoint,
- aws_access_key_id, aws_secret_access_key,
- is_secure, port, proxy, proxy_port,
- proxy_user, proxy_pass, debug,
- https_connection_factory, path,
- security_token=security_token,
- validate_certs=validate_certs,
- profile_name=profile_name)
+ aws_access_key_id, aws_secret_access_key,
+ is_secure, port, proxy, proxy_port,
+ proxy_user, proxy_pass, debug,
+ https_connection_factory, path,
+ security_token=security_token,
+ validate_certs=validate_certs,
+ profile_name=profile_name)
def _required_auth_capability(self):
return ['ses']
@@ -260,18 +260,18 @@ class SESConnection(AWSAuthConnection):
raise ValueError("No text or html body found for mail")
self._build_list_params(params, to_addresses,
- 'Destination.ToAddresses.member')
+ 'Destination.ToAddresses.member')
if cc_addresses:
self._build_list_params(params, cc_addresses,
- 'Destination.CcAddresses.member')
+ 'Destination.CcAddresses.member')
if bcc_addresses:
self._build_list_params(params, bcc_addresses,
- 'Destination.BccAddresses.member')
+ 'Destination.BccAddresses.member')
if reply_addresses:
self._build_list_params(params, reply_addresses,
- 'ReplyToAddresses.member')
+ 'ReplyToAddresses.member')
return self._make_request('SendEmail', params)
@@ -318,7 +318,7 @@ class SESConnection(AWSAuthConnection):
if destinations:
self._build_list_params(params, destinations,
- 'Destinations.member')
+ 'Destinations.member')
return self._make_request('SendRawEmail', params)
@@ -475,7 +475,7 @@ class SESConnection(AWSAuthConnection):
"""
params = {}
self._build_list_params(params, identities,
- 'Identities.member')
+ 'Identities.member')
return self._make_request('GetIdentityVerificationAttributes', params)
def verify_domain_identity(self, domain):
@@ -531,17 +531,17 @@ class SESConnection(AWSAuthConnection):
:param identity: An email address or domain name.
:type notification_type: string
- :param notification_type: The type of feedback notifications that will
+ :param notification_type: The type of feedback notifications that will
be published to the specified topic.
Valid Values: Bounce | Complaint | Delivery
:type sns_topic: string or None
- :param sns_topic: The Amazon Resource Name (ARN) of the Amazon Simple
- Notification Service (Amazon SNS) topic.
+ :param sns_topic: The Amazon Resource Name (ARN) of the Amazon Simple
+ Notification Service (Amazon SNS) topic.
"""
params = {
- 'Identity': identity,
- 'NotificationType': notification_type
+ 'Identity': identity,
+ 'NotificationType': notification_type
}
if sns_topic:
params['SnsTopic'] = sns_topic
@@ -560,7 +560,6 @@ class SESConnection(AWSAuthConnection):
:param forwarding_enabled: Specifies whether or not to enable feedback forwarding.
"""
return self._make_request('SetIdentityFeedbackForwardingEnabled', {
- 'Identity': identity,
- 'ForwardingEnabled': 'true' if forwarding_enabled else 'false'
+ 'Identity': identity,
+ 'ForwardingEnabled': 'true' if forwarding_enabled else 'false'
})
-