get_template
(**kwargs)¶Displays the template object (which includes the Subject line, HTML part and text part) for the template you specify.
You can execute this operation no more than once per second.
See also: AWS API Documentation
Request Syntax
response = client.get_template(
TemplateName='string'
)
[REQUIRED]
The name of the template you want to retrieve.
{
'Template': {
'TemplateName': 'string',
'SubjectPart': 'string',
'TextPart': 'string',
'HtmlPart': 'string'
}
}
Response Structure
The content of the email, composed of a subject line, an HTML part, and a text-only part.
The name of the template. You will refer to this name when you send email using the SendTemplatedEmail
or SendBulkTemplatedEmail
operations.
The subject line of the email.
The email body that will be visible to recipients whose email clients do not display HTML.
The HTML body of the email.
Exceptions
SES.Client.exceptions.TemplateDoesNotExistException