list_pull_requests
async
¶
list_pull_requests(
repository_name: RepositoryName,
*,
config_overrides: Optional[AsyncCodeCommitClientConfig] = None,
author_arn: Optional[Arn] = None,
pull_request_status: Optional[PullRequestStatusEnum] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListPullRequestsOutput
Returns a list of pull requests for a specified repository. The return list can be refined by pull request status or pull request author ARN.
Parameters:
-
repository_name(RepositoryName) –The name of the repository for which you want to list pull requests.
-
author_arn(Optional[Arn], default:None) –Optional. The Amazon Resource Name (ARN) of the user who created the pull request. If used, this filters the results to pull requests created by that user.
-
pull_request_status(Optional[PullRequestStatusEnum], default:None) –Optional. The status of the pull request. If used, this refines the results to the pull requests that match the specified status.
-
next_token(Optional[NextToken], default:None) –An enumeration token that, when provided in a request, returns the next batch of the results.
-
max_results(Optional[MaxResults], default:None) –A non-zero, non-negative integer used to limit the number of returned results.
Raises:
-
AuthorDoesNotExistException–The specified Amazon Resource Name (ARN) does not exist in the Amazon Web Services account.
-
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.
-
InvalidAuthorArnException–The Amazon Resource Name (ARN) is not valid. Make sure that you have provided the full ARN for the author of the pull request, and then try again.
-
InvalidContinuationTokenException–The specified continuation token is not valid.
-
InvalidMaxResultsException–The specified number of maximum results is not valid.
-
InvalidPullRequestStatusException–The pull request status is not valid. The only valid values are
OPENandCLOSED. -
InvalidRepositoryNameException–A specified repository name is not valid.
This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
-
RepositoryDoesNotExistException–The specified repository does not exist.
-
RepositoryNameRequiredException–A repository name is required, but was not specified.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codecommit/_services/async_code_commit.py
3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 | |