Permalink
Browse files

Added connect_ses shortcut function

  • Loading branch information...
1 parent 6f1cbd2 commit b52c7f4d8ed34425b5f80894a5c44eb50fcf3c5c @hmarr hmarr committed with Mitch Garnaat Jan 26, 2011
Showing with 14 additions and 0 deletions.
  1. +14 −0 boto/__init__.py
View
@@ -369,6 +369,20 @@ def connect_walrus(host, aws_access_key_id=None, aws_secret_access_key=None,
calling_format=OrdinaryCallingFormat(),
is_secure=is_secure, **kwargs)
+def connect_ses(aws_access_key_id=None, aws_secret_access_key=None, **kwargs):
+ """
+ :type aws_access_key_id: string
+ :param aws_access_key_id: Your AWS Access Key ID
+
+ :type aws_secret_access_key: string
+ :param aws_secret_access_key: Your AWS Secret Access Key
+
+ :rtype: :class:`boto.ses.SESConnection`
+ :return: A connection to Amazon's SES
+ """
+ from boto.ses import SESConnection
+ return SESConnection(aws_access_key_id, aws_secret_access_key, **kwargs)
+
def check_extensions(module_name, module_path):
"""
This function checks for extensions to boto modules. It should be called in the

0 comments on commit b52c7f4

Please sign in to comment.