override_pull_request_approval_rules
async
¶
override_pull_request_approval_rules(
pull_request_id: PullRequestId,
revision_id: RevisionId,
override_status: OverrideStatus,
*,
config_overrides: Optional[AsyncCodeCommitClientConfig] = 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/async_code_commit.py
4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 | |