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

***************
update_template
***************



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

  

  Updates a migration workflow template.

  

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


  **Request Syntax**
  ::

    response = client.update_template(
        id='string',
        templateName='string',
        templateDescription='string',
        clientToken='string'
    )
    
  :type id: string
  :param id: **[REQUIRED]** 

    The ID of the request to update a migration workflow template.

    

  
  :type templateName: string
  :param templateName: 

    The name of the migration workflow template to update.

    

  
  :type templateDescription: string
  :param templateDescription: 

    The description of the migration workflow template to update.

    

  
  :type clientToken: string
  :param clientToken: 

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

    This field is autopopulated if not provided.

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

    
    ::

      {
          'templateId': 'string',
          'templateArn': 'string',
          'tags': {
              'string': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **templateId** *(string) --* 

        The ID of the migration workflow template being updated.

        
      

      - **templateArn** *(string) --* 

        The ARN of the migration workflow template being updated. The format for an Migration Hub Orchestrator template ARN is ``arn:aws:migrationhub-orchestrator:region:account:template/template-abcd1234``. For more information about ARNs, see `Amazon Resource Names (ARNs) <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference-arns.html>`__ in the *AWS General Reference*.

        
      

      - **tags** *(dict) --* 

        The tags added to the migration workflow template.

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
  
  **Exceptions**
  
  *   :py:class:`MigrationHubOrchestrator.Client.exceptions.ThrottlingException`

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

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

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

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

  