CodeCommit / Client / delete_approval_rule_template

delete_approval_rule_template#

CodeCommit.Client.delete_approval_rule_template(**kwargs)#

Deletes a specified approval rule template. Deleting a template does not remove approval rules on pull requests already created with the template.

See also: AWS API Documentation

Request Syntax

response = client.delete_approval_rule_template(
    approvalRuleTemplateName='string'
)
Parameters:

approvalRuleTemplateName (string) –

[REQUIRED]

The name of the approval rule template to delete.

Return type:

dict

Returns:

Response Syntax

{
    'approvalRuleTemplateId': 'string'
}

Response Structure

  • (dict) –

    • approvalRuleTemplateId (string) –

      The system-generated ID of the deleted approval rule template. If the template has been previously deleted, the only response is a 200 OK.

Exceptions

  • CodeCommit.Client.exceptions.ApprovalRuleTemplateNameRequiredException

  • CodeCommit.Client.exceptions.InvalidApprovalRuleTemplateNameException

  • CodeCommit.Client.exceptions.ApprovalRuleTemplateInUseException