list_code_reviews
¶
list_code_reviews(
type: Type,
*,
config_overrides: Optional[CodeGuruReviewerClientConfig] = None,
provider_types: Optional[ProviderTypes] = None,
states: Optional[JobStates] = None,
repository_names: Optional[RepositoryNames] = None,
max_results: Optional[ListCodeReviewsMaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListCodeReviewsResponse
Lists all the code reviews that the customer has created in the past 90 days.
Parameters:
-
provider_types(Optional[ProviderTypes], default:None) –List of provider types for filtering that needs to be applied before displaying the result. For example,
providerTypes=[GitHub]lists code reviews from GitHub. -
states(Optional[JobStates], default:None) –List of states for filtering that needs to be applied before displaying the result. For example,
states=[Pending]lists code reviews in the Pending state.The valid code review states are:
-
Completed: The code review is complete. -
Pending: The code review started and has not completed or failed. -
Failed: The code review failed. -
Deleting: The code review is being deleted.
-
-
repository_names(Optional[RepositoryNames], default:None) –List of repository names for filtering that needs to be applied before displaying the result.
-
type(Type) –The type of code reviews to list in the response.
-
max_results(Optional[ListCodeReviewsMaxResults], default:None) –The maximum number of results that are returned per call. The default is 100.
-
next_token(Optional[NextToken], default:None) –If
nextTokenis returned, there are more results available. The value ofnextTokenis a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–The server encountered an internal error and is unable to complete the request.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the specified constraints.
-
UnknownServiceError–The service returned an error code this client does not model.