:doc:`MigrationHubOrchestrator <../../migrationhuborchestrator>` / Client / list_templates

**************
list_templates
**************



.. py:method:: MigrationHubOrchestrator.Client.list_templates(**kwargs)

  

  List the templates available in Migration Hub Orchestrator to create a migration workflow.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/migrationhuborchestrator-2021-08-28/ListTemplates>`_  


  **Request Syntax**
  ::

    response = client.list_templates(
        maxResults=123,
        nextToken='string',
        name='string'
    )
    
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results that can be returned.

    

  
  :type nextToken: string
  :param nextToken: 

    The pagination token.

    

  
  :type name: string
  :param name: 

    The name of the template.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'nextToken': 'string',
          'templateSummary': [
              {
                  'id': 'string',
                  'name': 'string',
                  'arn': 'string',
                  'description': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **nextToken** *(string) --* 

        The pagination token.

        
      

      - **templateSummary** *(list) --* 

        The summary of the template.

        
        

        - *(dict) --* 

          The summary of the template.

          
          

          - **id** *(string) --* 

            The ID of the template.

            
          

          - **name** *(string) --* 

            The name of the template.

            
          

          - **arn** *(string) --* 

            The Amazon Resource Name (ARN) of the template.

            
          

          - **description** *(string) --* 

            The description of the template.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`MigrationHubOrchestrator.Client.exceptions.ThrottlingException`

  
  *   :py:class:`MigrationHubOrchestrator.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`MigrationHubOrchestrator.Client.exceptions.InternalServerException`

  