CodeCommit / Client / batch_associate_approval_rule_template_with_repositories



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

See also: AWS API Documentation

Request Syntax

response = client.batch_associate_approval_rule_template_with_repositories(
  • approvalRuleTemplateName (string) –


    The name of the template you want to associate with one or more repositories.

  • repositoryNames (list) –


    The names of the repositories you want to associate with the template.


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

    • (string) –

Return type:



Response Syntax

    'associatedRepositoryNames': [
    'errors': [
            'repositoryName': 'string',
            'errorCode': 'string',
            'errorMessage': 'string'

Response Structure

  • (dict) –

    • associatedRepositoryNames (list) –

      A list of names of the repositories that have been associated with the template.

      • (string) –

    • errors (list) –

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

      • (dict) –

        Returns information about errors in a BatchAssociateApprovalRuleTemplateWithRepositories operation.

        • repositoryName (string) –

          The name of the repository where the association was not made.

        • 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 not found or not valid.


  • CodeCommit.Client.exceptions.ApprovalRuleTemplateNameRequiredException

  • CodeCommit.Client.exceptions.InvalidApprovalRuleTemplateNameException

  • CodeCommit.Client.exceptions.ApprovalRuleTemplateDoesNotExistException

  • CodeCommit.Client.exceptions.RepositoryNamesRequiredException

  • CodeCommit.Client.exceptions.MaximumRepositoryNamesExceededException

  • CodeCommit.Client.exceptions.EncryptionIntegrityChecksFailedException

  • CodeCommit.Client.exceptions.EncryptionKeyAccessDeniedException

  • CodeCommit.Client.exceptions.EncryptionKeyDisabledException

  • CodeCommit.Client.exceptions.EncryptionKeyNotFoundException

  • CodeCommit.Client.exceptions.EncryptionKeyUnavailableException