:doc:`SESV2 <../../sesv2>` / Client / list_email_templates

********************
list_email_templates
********************



.. py:method:: SESV2.Client.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 <https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/ListEmailTemplates>`_  


  **Request Syntax**
  ::

    response = client.list_email_templates(
        NextToken='string',
        PageSize=123
    )
    
  :type NextToken: string
  :param NextToken: 

    A token returned from a previous call to ``ListEmailTemplates`` to indicate the position in the list of email templates.

    

  
  :type PageSize: integer
  :param PageSize: 

    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 100.

    

  
  
  :rtype: 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**
  
  *   :py:class:`SESV2.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`SESV2.Client.exceptions.BadRequestException`

  