Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

update_pull_request_approval_state

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'
)
Parameters
  • pullRequestId (string) --

    [REQUIRED]

    The system-generated ID of the pull request.

  • revisionId (string) --

    [REQUIRED]

    The system-generated ID of the revision.

  • approvalState (string) --

    [REQUIRED]

    The approval state to associate with the user on the pull request.

Returns

None

Exceptions

  • CodeCommit.Client.exceptions.PullRequestDoesNotExistException
  • CodeCommit.Client.exceptions.InvalidPullRequestIdException
  • CodeCommit.Client.exceptions.PullRequestIdRequiredException
  • CodeCommit.Client.exceptions.InvalidRevisionIdException
  • CodeCommit.Client.exceptions.RevisionIdRequiredException
  • CodeCommit.Client.exceptions.InvalidApprovalStateException
  • CodeCommit.Client.exceptions.ApprovalStateRequiredException
  • CodeCommit.Client.exceptions.PullRequestCannotBeApprovedByAuthorException
  • CodeCommit.Client.exceptions.RevisionNotCurrentException
  • CodeCommit.Client.exceptions.PullRequestAlreadyClosedException
  • CodeCommit.Client.exceptions.MaximumNumberOfApprovalsExceededException
  • CodeCommit.Client.exceptions.EncryptionIntegrityChecksFailedException
  • CodeCommit.Client.exceptions.EncryptionKeyAccessDeniedException
  • CodeCommit.Client.exceptions.EncryptionKeyDisabledException
  • CodeCommit.Client.exceptions.EncryptionKeyNotFoundException
  • CodeCommit.Client.exceptions.EncryptionKeyUnavailableException