CodeCommit / Client / override_pull_request_approval_rules
override_pull_request_approval_rules#
- CodeCommit.Client.override_pull_request_approval_rules(**kwargs)#
Sets aside (overrides) all approval rule requirements for a specified pull request.
See also: AWS API Documentation
Request Syntax
response = client.override_pull_request_approval_rules( pullRequestId='string', revisionId='string', overrideStatus='OVERRIDE'|'REVOKE' )
- Parameters:
pullRequestId (string) –
[REQUIRED]
The system-generated ID of the pull request for which you want to override all approval rule requirements. To get this information, use GetPullRequest.
revisionId (string) –
[REQUIRED]
The system-generated ID of the most recent revision of the pull request. You cannot override approval rules for anything but the most recent revision of a pull request. To get the revision ID, use GetPullRequest.
overrideStatus (string) –
[REQUIRED]
Whether you want to set aside approval rule requirements for the pull request (OVERRIDE) or revoke a previous override and apply approval rule requirements (REVOKE). REVOKE status is not stored.
- 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.InvalidOverrideStatusException
CodeCommit.Client.exceptions.OverrideStatusRequiredException
CodeCommit.Client.exceptions.OverrideAlreadySetException
CodeCommit.Client.exceptions.RevisionNotCurrentException
CodeCommit.Client.exceptions.PullRequestAlreadyClosedException
CodeCommit.Client.exceptions.EncryptionIntegrityChecksFailedException
CodeCommit.Client.exceptions.EncryptionKeyAccessDeniedException
CodeCommit.Client.exceptions.EncryptionKeyDisabledException
CodeCommit.Client.exceptions.EncryptionKeyNotFoundException
CodeCommit.Client.exceptions.EncryptionKeyUnavailableException