CodeCommit / Client / disassociate_approval_rule_template_from_repository

disassociate_approval_rule_template_from_repository#

CodeCommit.Client.disassociate_approval_rule_template_from_repository(**kwargs)#

Removes the association between a template and a repository so that approval rules based on the template are not automatically created when pull requests are created in the specified repository. This does not delete any approval rules previously created for pull requests through the template association.

See also: AWS API Documentation

Request Syntax

response = client.disassociate_approval_rule_template_from_repository(
    approvalRuleTemplateName='string',
    repositoryName='string'
)
Parameters:
  • approvalRuleTemplateName (string) –

    [REQUIRED]

    The name of the approval rule template to disassociate from a specified repository.

  • repositoryName (string) –

    [REQUIRED]

    The name of the repository you want to disassociate from the template.

Returns:

None

Exceptions

  • CodeCommit.Client.exceptions.ApprovalRuleTemplateNameRequiredException

  • CodeCommit.Client.exceptions.InvalidApprovalRuleTemplateNameException

  • CodeCommit.Client.exceptions.ApprovalRuleTemplateDoesNotExistException

  • CodeCommit.Client.exceptions.RepositoryNameRequiredException

  • CodeCommit.Client.exceptions.InvalidRepositoryNameException

  • CodeCommit.Client.exceptions.RepositoryDoesNotExistException

  • CodeCommit.Client.exceptions.EncryptionIntegrityChecksFailedException

  • CodeCommit.Client.exceptions.EncryptionKeyAccessDeniedException

  • CodeCommit.Client.exceptions.EncryptionKeyDisabledException

  • CodeCommit.Client.exceptions.EncryptionKeyNotFoundException

  • CodeCommit.Client.exceptions.EncryptionKeyUnavailableException