Smaws_Client_CodeCommit.DeletePullRequestApprovalRuleDeletes an approval rule from a specified pull request. Approval rules can be deleted from a pull request only if the pull request is open, and if the approval rule was created specifically for a pull request and not generated from an approval rule template associated with the repository where the pull request was created. You cannot delete an approval rule from a merged or closed pull request.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `ApprovalRuleNameRequiredException of
Types.approval_rule_name_required_exception
| `CannotDeleteApprovalRuleFromTemplateException of
Types.cannot_delete_approval_rule_from_template_exception
| `EncryptionIntegrityChecksFailedException of
Types.encryption_integrity_checks_failed_exception
| `EncryptionKeyAccessDeniedException of
Types.encryption_key_access_denied_exception
| `EncryptionKeyDisabledException of Types.encryption_key_disabled_exception
| `EncryptionKeyNotFoundException of Types.encryption_key_not_found_exception
| `EncryptionKeyUnavailableException of
Types.encryption_key_unavailable_exception
| `InvalidApprovalRuleNameException of
Types.invalid_approval_rule_name_exception
| `InvalidPullRequestIdException of Types.invalid_pull_request_id_exception
| `PullRequestAlreadyClosedException of
Types.pull_request_already_closed_exception
| `PullRequestDoesNotExistException of
Types.pull_request_does_not_exist_exception
| `PullRequestIdRequiredException of Types.pull_request_id_required_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.delete_pull_request_approval_rule_input ->
(Types.delete_pull_request_approval_rule_output,
[> Smaws_Lib.Protocols.AwsJson.error
| `ApprovalRuleNameRequiredException of
Types.approval_rule_name_required_exception
| `CannotDeleteApprovalRuleFromTemplateException of
Types.cannot_delete_approval_rule_from_template_exception
| `EncryptionIntegrityChecksFailedException of
Types.encryption_integrity_checks_failed_exception
| `EncryptionKeyAccessDeniedException of
Types.encryption_key_access_denied_exception
| `EncryptionKeyDisabledException of
Types.encryption_key_disabled_exception
| `EncryptionKeyNotFoundException of
Types.encryption_key_not_found_exception
| `EncryptionKeyUnavailableException of
Types.encryption_key_unavailable_exception
| `InvalidApprovalRuleNameException of
Types.invalid_approval_rule_name_exception
| `InvalidPullRequestIdException of Types.invalid_pull_request_id_exception
| `PullRequestAlreadyClosedException of
Types.pull_request_already_closed_exception
| `PullRequestDoesNotExistException of
Types.pull_request_does_not_exist_exception
| `PullRequestIdRequiredException of
Types.pull_request_id_required_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.delete_pull_request_approval_rule_input ->
(Types.delete_pull_request_approval_rule_output Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `ApprovalRuleNameRequiredException of
Types.approval_rule_name_required_exception
| `CannotDeleteApprovalRuleFromTemplateException of
Types.cannot_delete_approval_rule_from_template_exception
| `EncryptionIntegrityChecksFailedException of
Types.encryption_integrity_checks_failed_exception
| `EncryptionKeyAccessDeniedException of
Types.encryption_key_access_denied_exception
| `EncryptionKeyDisabledException of
Types.encryption_key_disabled_exception
| `EncryptionKeyNotFoundException of
Types.encryption_key_not_found_exception
| `EncryptionKeyUnavailableException of
Types.encryption_key_unavailable_exception
| `InvalidApprovalRuleNameException of
Types.invalid_approval_rule_name_exception
| `InvalidPullRequestIdException of Types.invalid_pull_request_id_exception
| `PullRequestAlreadyClosedException of
Types.pull_request_already_closed_exception
| `PullRequestDoesNotExistException of
Types.pull_request_does_not_exist_exception
| `PullRequestIdRequiredException of
Types.pull_request_id_required_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result