def register_email_temapltes()

in stacks/email_automation_workflow_stack.py [0:0]


    def register_email_temapltes(self):
        
        f = open('./sample_data/email_templates.json',)
        data = json.load(f)
        for template in data['templates']:
            ses.CfnTemplate(
                self, "id_ses_template_{}".format(template['template_name']),
                template= ses.CfnTemplate.TemplateProperty(**template)
            )
        f.close()