| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CodeGuruReviewer.ListCodeReviews
Description
Lists all the code reviews that the customer has created in the past 90 days.
Synopsis
- data ListCodeReviews = ListCodeReviews' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- providerTypes :: Maybe (NonEmpty ProviderType)
- repositoryNames :: Maybe (NonEmpty Text)
- states :: Maybe (NonEmpty JobState)
- type' :: Type
- newListCodeReviews :: Type -> ListCodeReviews
- listCodeReviews_maxResults :: Lens' ListCodeReviews (Maybe Natural)
- listCodeReviews_nextToken :: Lens' ListCodeReviews (Maybe Text)
- listCodeReviews_providerTypes :: Lens' ListCodeReviews (Maybe (NonEmpty ProviderType))
- listCodeReviews_repositoryNames :: Lens' ListCodeReviews (Maybe (NonEmpty Text))
- listCodeReviews_states :: Lens' ListCodeReviews (Maybe (NonEmpty JobState))
- listCodeReviews_type :: Lens' ListCodeReviews Type
- data ListCodeReviewsResponse = ListCodeReviewsResponse' {}
- newListCodeReviewsResponse :: Int -> ListCodeReviewsResponse
- listCodeReviewsResponse_codeReviewSummaries :: Lens' ListCodeReviewsResponse (Maybe [CodeReviewSummary])
- listCodeReviewsResponse_nextToken :: Lens' ListCodeReviewsResponse (Maybe Text)
- listCodeReviewsResponse_httpStatus :: Lens' ListCodeReviewsResponse Int
Creating a Request
data ListCodeReviews Source #
See: newListCodeReviews smart constructor.
Constructors
| ListCodeReviews' | |
Fields
| |
Instances
Arguments
| :: Type | |
| -> ListCodeReviews |
Create a value of ListCodeReviews with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:maxResults:ListCodeReviews', listCodeReviews_maxResults - The maximum number of results that are returned per call. The default is
100.
ListCodeReviews, listCodeReviews_nextToken - If nextToken is returned, there are more results available. The value
of nextToken is 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.
$sel:providerTypes:ListCodeReviews', listCodeReviews_providerTypes - List of provider types for filtering that needs to be applied before
displaying the result. For example, providerTypes=[GitHub] lists code
reviews from GitHub.
$sel:repositoryNames:ListCodeReviews', listCodeReviews_repositoryNames - List of repository names for filtering that needs to be applied before
displaying the result.
$sel:states:ListCodeReviews', listCodeReviews_states - 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.
ListCodeReviews, listCodeReviews_type - The type of code reviews to list in the response.
Request Lenses
listCodeReviews_maxResults :: Lens' ListCodeReviews (Maybe Natural) Source #
The maximum number of results that are returned per call. The default is 100.
listCodeReviews_nextToken :: Lens' ListCodeReviews (Maybe Text) Source #
If nextToken is returned, there are more results available. The value
of nextToken is 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.
listCodeReviews_providerTypes :: Lens' ListCodeReviews (Maybe (NonEmpty ProviderType)) Source #
List of provider types for filtering that needs to be applied before
displaying the result. For example, providerTypes=[GitHub] lists code
reviews from GitHub.
listCodeReviews_repositoryNames :: Lens' ListCodeReviews (Maybe (NonEmpty Text)) Source #
List of repository names for filtering that needs to be applied before displaying the result.
listCodeReviews_states :: Lens' ListCodeReviews (Maybe (NonEmpty JobState)) Source #
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.
listCodeReviews_type :: Lens' ListCodeReviews Type Source #
The type of code reviews to list in the response.
Destructuring the Response
data ListCodeReviewsResponse Source #
See: newListCodeReviewsResponse smart constructor.
Constructors
| ListCodeReviewsResponse' | |
Fields
| |
Instances
newListCodeReviewsResponse Source #
Create a value of ListCodeReviewsResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:codeReviewSummaries:ListCodeReviewsResponse', listCodeReviewsResponse_codeReviewSummaries - A list of code reviews that meet the criteria of the request.
ListCodeReviews, listCodeReviewsResponse_nextToken - Pagination token.
$sel:httpStatus:ListCodeReviewsResponse', listCodeReviewsResponse_httpStatus - The response's http status code.
Response Lenses
listCodeReviewsResponse_codeReviewSummaries :: Lens' ListCodeReviewsResponse (Maybe [CodeReviewSummary]) Source #
A list of code reviews that meet the criteria of the request.
listCodeReviewsResponse_nextToken :: Lens' ListCodeReviewsResponse (Maybe Text) Source #
Pagination token.
listCodeReviewsResponse_httpStatus :: Lens' ListCodeReviewsResponse Int Source #
The response's http status code.