Best Python code snippet using localstack_python
client.py
Source:client.py  
...139    def update_configuration_set_sending_enabled(self, ConfigurationSetName: str, Enabled: bool):140        pass141    def update_configuration_set_tracking_options(self, ConfigurationSetName: str, TrackingOptions: Dict) -> Dict:142        pass143    def update_custom_verification_email_template(self, TemplateName: str, FromEmailAddress: str = None, TemplateSubject: str = None, TemplateContent: str = None, SuccessRedirectionURL: str = None, FailureRedirectionURL: str = None):144        pass145    def update_receipt_rule(self, RuleSetName: str, Rule: Dict) -> Dict:146        pass147    def update_template(self, Template: Dict) -> Dict:148        pass149    def verify_domain_dkim(self, Domain: str) -> Dict:150        pass151    def verify_domain_identity(self, Domain: str) -> Dict:152        pass153    def verify_email_address(self, EmailAddress: str):154        pass155    def verify_email_identity(self, EmailAddress: str) -> Dict:...setup_custom_ses_email.py
Source:setup_custom_ses_email.py  
...102        try:103            client = get_aws_session(104                client_name='ses', region_name=current_app.config[105                    'AWS_SES_REGION'])106            response = client.update_custom_verification_email_template(107                TemplateName=template_name, FromEmailAddress=from_address,108                TemplateSubject=subject, TemplateContent=content,109                SuccessRedirectionURL=success_url,110                FailureRedirectionURL=failure_url)111            if (not response or 'ResponseMetadata' not in response or112                    'RequestId' not in response['ResponseMetadata'] or113                    response['ResponseMetadata']['HTTPStatusCode'] != 200):114                print('Error')115                print(response)116                exit(1)117            response2 = client.get_custom_verification_email_template(118                TemplateName=template_name)119            if not response2 or 'TemplateName' not in response2:120                print('Error')...newUserEmail.py
Source:newUserEmail.py  
...4    # Create a new SES resource and specify a region.5    AWS_REGION = "eu-west-2"6    client = boto3.client('ses',region_name=AWS_REGION)7    ### Unhighlight to update template8    # response = client.update_custom_verification_email_template(9    #   TemplateName="verifyNewUser",10    #   FromEmailAddress="alerts@strataflights.co.uk",11    #   TemplateSubject="Please confirm your email address",12    #   TemplateContent="""<html><head></head><body style='font-family:sans-serif;'><h1 style='text-align:center'>Please confirm your email address</h1><p>We here at Strata Flights are happy to have you on board! There's just one last step to complete before we can start sending you weekly updates. Just click the following link to verify your email address. Once we confirm that you're really you, we can go ahead and keep you updated on the COVID-19 situation for your destination.</p></body></html>""",13    #   SuccessRedirectionURL="https://www.strataflights.co.uk/success",14    #   FailureRedirectionURL="https://www.strataflights.co.uk/failure"15    # )16    17    response = client.send_custom_verification_email(18        EmailAddress=event['to'],19        TemplateName='verifyNewUser'20    )21    22    ...Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!
