:doc:`CodeCommit <../../codecommit>` / Client / update_approval_rule_template_name

**********************************
update_approval_rule_template_name
**********************************



.. py:method:: CodeCommit.Client.update_approval_rule_template_name(**kwargs)

  

  Updates the name of a specified approval rule template.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateApprovalRuleTemplateName>`_  


  **Request Syntax**
  ::

    response = client.update_approval_rule_template_name(
        oldApprovalRuleTemplateName='string',
        newApprovalRuleTemplateName='string'
    )
    
  :type oldApprovalRuleTemplateName: string
  :param oldApprovalRuleTemplateName: **[REQUIRED]** 

    The current name of the approval rule template.

    

  
  :type newApprovalRuleTemplateName: string
  :param newApprovalRuleTemplateName: **[REQUIRED]** 

    The new name you want to apply to the approval rule template.

    

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

    
    ::

      {
          'approvalRuleTemplate': {
              'approvalRuleTemplateId': 'string',
              'approvalRuleTemplateName': 'string',
              'approvalRuleTemplateDescription': 'string',
              'approvalRuleTemplateContent': 'string',
              'ruleContentSha256': 'string',
              'lastModifiedDate': datetime(2015, 1, 1),
              'creationDate': datetime(2015, 1, 1),
              'lastModifiedUser': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **approvalRuleTemplate** *(dict) --* 

        The structure and content of the updated approval rule template.

        
        

        - **approvalRuleTemplateId** *(string) --* 

          The system-generated ID of the approval rule template.

          
        

        - **approvalRuleTemplateName** *(string) --* 

          The name of the approval rule template.

          
        

        - **approvalRuleTemplateDescription** *(string) --* 

          The description of the approval rule template.

          
        

        - **approvalRuleTemplateContent** *(string) --* 

          The content of the approval rule template.

          
        

        - **ruleContentSha256** *(string) --* 

          The SHA-256 hash signature for the content of the approval rule template.

          
        

        - **lastModifiedDate** *(datetime) --* 

          The date the approval rule template was most recently changed, in timestamp format.

          
        

        - **creationDate** *(datetime) --* 

          The date the approval rule template was created, in timestamp format.

          
        

        - **lastModifiedUser** *(string) --* 

          The Amazon Resource Name (ARN) of the user who made the most recent changes to the approval rule template.

          
    
  
  **Exceptions**
  
  *   :py:class:`CodeCommit.Client.exceptions.InvalidApprovalRuleTemplateNameException`

  
  *   :py:class:`CodeCommit.Client.exceptions.ApprovalRuleTemplateNameRequiredException`

  
  *   :py:class:`CodeCommit.Client.exceptions.ApprovalRuleTemplateDoesNotExistException`

  
  *   :py:class:`CodeCommit.Client.exceptions.ApprovalRuleTemplateNameAlreadyExistsException`

  