override_pull_request_approval_rules
¶
override_pull_request_approval_rules(
pull_request_id: PullRequestId,
revision_id: RevisionId,
override_status: OverrideStatus,
*,
config_overrides: Optional[CodeCommitClientConfig] = None,
) -> None
Sets aside (overrides) all approval rule requirements for a specified pull request.
Parameters:
-
pull_request_id(PullRequestId) –The system-generated ID of the pull request for which you want to override all approval rule requirements. To get this information, use GetPullRequest.
-
revision_id(RevisionId) –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.
-
override_status(OverrideStatus) –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.
Raises:
-
EncryptionIntegrityChecksFailedException–An encryption integrity check failed.
-
EncryptionKeyAccessDeniedException–An encryption key could not be accessed.
-
EncryptionKeyDisabledException–The encryption key is disabled.
-
EncryptionKeyNotFoundException–No encryption key was found.
-
EncryptionKeyUnavailableException–The encryption key is not available.
-
InvalidOverrideStatusException–The override status is not valid. Valid statuses are OVERRIDE and REVOKE.
-
InvalidPullRequestIdException–The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request is in the specified repository, and then try again.
-
InvalidRevisionIdException–The revision ID is not valid. Use GetPullRequest to determine the value.
-
OverrideAlreadySetException–The pull request has already had its approval rules set to override.
-
OverrideStatusRequiredException–An override status is required, but no value was provided. Valid values include OVERRIDE and REVOKE.
-
PullRequestAlreadyClosedException–The pull request status cannot be updated because it is already closed.
-
PullRequestDoesNotExistException–The pull request ID could not be found. Make sure that you have specified the correct repository name and pull request ID, and then try again.
-
PullRequestIdRequiredException–A pull request ID is required, but none was provided.
-
RevisionIdRequiredException–A revision ID is required, but was not provided.
-
RevisionNotCurrentException–The revision ID provided in the request does not match the current revision ID. Use GetPullRequest to retrieve the current revision ID.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codecommit/_services/code_commit.py
4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 | |