(self, cred, debug=False)
Init AWS SES params.

        Args:
            debug (bool): Log on terminal or not
            cred (dict): AWS SES credentials
Init AWS SES params.
Init AWS SES params .
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)
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 )