parameters: (self, cred, debug=False)
docstring: Init AWS SES params.
  
          Args:
              debug (bool): Log on terminal or not
              cred (dict): AWS SES credentials
docstring_summary: Init AWS SES params.
docstring_tokens: Init AWS SES params .
function: def __init__(self, cred, debug=False):
          """Init AWS SES params.
  
          Args:
              debug (bool): Log on terminal or not
              cred (dict): AWS SES credentials
          """
          # Initialize logger
          self.logger = logger.SecureTeaLogger(
              self.modulename,
              debug
          )
  
          self.enabled = common.check_config(cred)
          if not self.enabled:
              self.logger.log(
                  "Credentials not present, please set AWS SES config at ~/.securetea/securetea.conf ",
                  logtype="error"
              )
  
          self.user_email = cred['aws_email']
          self.access_key = cred['aws_access_key']
          self.secret_key = cred['aws_secret_key']
          self.email_obj = helper_email.Email(self.user_email,
                                              "secureTea Security Alert!",
                                              self.access_key,
                                              self.secret_key)
function_tokens: def __init__ ( self , cred , debug = False ) : # Initialize logger self . logger = logger . SecureTeaLogger ( self . modulename , debug ) self . enabled = common . check_config ( cred ) if not self . enabled : self . logger . log ( "Credentials not present, please set AWS SES config at ~/.securetea/securetea.conf " , logtype = "error" ) self . user_email = cred [ 'aws_email' ] self . access_key = cred [ 'aws_access_key' ] self . secret_key = cred [ 'aws_secret_key' ] self . email_obj = helper_email . Email ( self . user_email , "secureTea Security Alert!" , self . access_key , self . secret_key )