SES / Client / update_template
update_template#
- SES.Client.update_template(**kwargs)#
Updates an email template. Email templates enable you to send personalized email to one or more destinations in a single operation. For more information, see the Amazon SES Developer Guide.
You can execute this operation no more than once per second.
See also: AWS API Documentation
Request Syntax
response = client.update_template( Template={ 'TemplateName': 'string', 'SubjectPart': 'string', 'TextPart': 'string', 'HtmlPart': 'string' } )
- Parameters:
Template (dict) –
[REQUIRED]
The content of the email, composed of a subject line and either an HTML part or a text-only part.
TemplateName (string) – [REQUIRED]
The name of the template. You use this name when you send email using the
SendTemplatedEmail
orSendBulkTemplatedEmail
operations.SubjectPart (string) –
The subject line of the email.
TextPart (string) –
The email body that is visible to recipients whose email clients do not display HTML content.
HtmlPart (string) –
The HTML body of the email.
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions
SES.Client.exceptions.TemplateDoesNotExistException
SES.Client.exceptions.InvalidTemplateException