list_email_templates

list_email_templates(**kwargs)

Lists the email templates present in your Amazon SES account in the current Amazon Web Services Region.

You can execute this operation no more than once per second.

See also: AWS API Documentation

Request Syntax

response = client.list_email_templates(
    NextToken='string',
    PageSize=123
)
Parameters
  • NextToken (string) -- A token returned from a previous call to ListEmailTemplates to indicate the position in the list of email templates.
  • PageSize (integer) --

    The number of results to show in a single call to ListEmailTemplates . If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.

    The value you specify has to be at least 1, and can be no more than 10.

Return type

dict

Returns

Response Syntax

{
    'TemplatesMetadata': [
        {
            'TemplateName': 'string',
            'CreatedTimestamp': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    The following elements are returned by the service.

    • TemplatesMetadata (list) --

      An array the contains the name and creation time stamp for each template in your Amazon SES account.

      • (dict) --

        Contains information about an email template.

        • TemplateName (string) --

          The name of the template.

        • CreatedTimestamp (datetime) --

          The time and date the template was created.

    • NextToken (string) --

      A token indicating that there are additional email templates available to be listed. Pass this token to a subsequent ListEmailTemplates call to retrieve the next 10 email templates.

Exceptions

  • SESV2.Client.exceptions.TooManyRequestsException
  • SESV2.Client.exceptions.BadRequestException