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

***********************************************************
batch_disassociate_approval_rule_template_from_repositories
***********************************************************



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

  

  Removes the association between an approval rule template and one or more specified repositories.

  

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


  **Request Syntax**
  ::

    response = client.batch_disassociate_approval_rule_template_from_repositories(
        approvalRuleTemplateName='string',
        repositoryNames=[
            'string',
        ]
    )
    
  :type approvalRuleTemplateName: string
  :param approvalRuleTemplateName: **[REQUIRED]** 

    The name of the template that you want to disassociate from one or more repositories.

    

  
  :type repositoryNames: list
  :param repositoryNames: **[REQUIRED]** 

    The repository names that you want to disassociate from the approval rule template.

     

    .. note::

      

      The length constraint limit is for each string in the array. The array itself can be empty.

      

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'disassociatedRepositoryNames': [
              'string',
          ],
          'errors': [
              {
                  'repositoryName': 'string',
                  'errorCode': 'string',
                  'errorMessage': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **disassociatedRepositoryNames** *(list) --* 

        A list of repository names that have had their association with the template removed.

        
        

        - *(string) --* 
    
      

      - **errors** *(list) --* 

        A list of any errors that might have occurred while attempting to remove the association between the template and the repositories.

        
        

        - *(dict) --* 

          Returns information about errors in a BatchDisassociateApprovalRuleTemplateFromRepositories operation.

          
          

          - **repositoryName** *(string) --* 

            The name of the repository where the association with the template was not able to be removed.

            
          

          - **errorCode** *(string) --* 

            An error code that specifies whether the repository name was not valid or not found.

            
          

          - **errorMessage** *(string) --* 

            An error message that provides details about why the repository name was either not found or not valid.

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

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

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

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

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

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

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

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

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

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

  