SESV2 / Client / test_render_email_template
test_render_email_template#
- SESV2.Client.test_render_email_template(**kwargs)#
- Creates a preview of the MIME content of an email when provided with a template and a set of replacement data. - You can execute this operation no more than once per second. - See also: AWS API Documentation - Request Syntax - response = client.test_render_email_template( TemplateName='string', TemplateData='string' ) - Parameters:
- TemplateName (string) – - [REQUIRED] - The name of the template. 
- TemplateData (string) – - [REQUIRED] - A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template. 
 
- Return type:
- dict 
- Returns:
- Response Syntax - { 'RenderedTemplate': 'string' } - Response Structure - (dict) – - The following element is returned by the service. - RenderedTemplate (string) – - The complete MIME message rendered by applying the data in the - TemplateDataparameter to the template specified in the TemplateName parameter.
 
 
 - Exceptions - SESV2.Client.exceptions.NotFoundException
- SESV2.Client.exceptions.TooManyRequestsException
- SESV2.Client.exceptions.BadRequestException