CodeCommit.Client.update_pull_request_approval_state(**kwargs)¶Updates the state of a user's approval on a pull request. The user is derived from the signed-in account when the request is made.
See also: AWS API Documentation
Request Syntax
response = client.update_pull_request_approval_state(
pullRequestId='string',
revisionId='string',
approvalState='APPROVE'|'REVOKE'
)
[REQUIRED]
The system-generated ID of the pull request.
[REQUIRED]
The system-generated ID of the revision.
[REQUIRED]
The approval state to associate with the user on the pull request.
None
Exceptions
CodeCommit.Client.exceptions.PullRequestDoesNotExistExceptionCodeCommit.Client.exceptions.InvalidPullRequestIdExceptionCodeCommit.Client.exceptions.PullRequestIdRequiredExceptionCodeCommit.Client.exceptions.InvalidRevisionIdExceptionCodeCommit.Client.exceptions.RevisionIdRequiredExceptionCodeCommit.Client.exceptions.InvalidApprovalStateExceptionCodeCommit.Client.exceptions.ApprovalStateRequiredExceptionCodeCommit.Client.exceptions.PullRequestCannotBeApprovedByAuthorExceptionCodeCommit.Client.exceptions.RevisionNotCurrentExceptionCodeCommit.Client.exceptions.PullRequestAlreadyClosedExceptionCodeCommit.Client.exceptions.MaximumNumberOfApprovalsExceededExceptionCodeCommit.Client.exceptions.EncryptionIntegrityChecksFailedExceptionCodeCommit.Client.exceptions.EncryptionKeyAccessDeniedExceptionCodeCommit.Client.exceptions.EncryptionKeyDisabledExceptionCodeCommit.Client.exceptions.EncryptionKeyNotFoundExceptionCodeCommit.Client.exceptions.EncryptionKeyUnavailableException