libZSservicesZSamazonka-codeguru-reviewerZSamazonka-codeguru-reviewer
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CodeGuruReviewer.ListCodeReviews

Description

Lists all the code reviews that the customer has created in the past 90 days.

Synopsis

Creating a Request

data ListCodeReviews Source #

See: newListCodeReviews smart constructor.

Constructors

ListCodeReviews' 

Fields

  • states :: Maybe (NonEmpty JobState)

    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.
  • providerTypes :: Maybe (NonEmpty ProviderType)

    List of provider types for filtering that needs to be applied before displaying the result. For example, providerTypes=[GitHub] lists code reviews from GitHub.

  • repositoryNames :: Maybe (NonEmpty Text)

    List of repository names for filtering that needs to be applied before displaying the result.

  • nextToken :: Maybe Text

    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.

  • maxResults :: Maybe Natural

    The maximum number of results that are returned per call. The default is 100.

  • type' :: Type

    The type of code reviews to list in the response.

Instances

Instances details
Eq ListCodeReviews Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.ListCodeReviews

Read ListCodeReviews Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.ListCodeReviews

Show ListCodeReviews Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.ListCodeReviews

Generic ListCodeReviews Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.ListCodeReviews

Associated Types

type Rep ListCodeReviews :: Type -> Type #

NFData ListCodeReviews Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.ListCodeReviews

Methods

rnf :: ListCodeReviews -> () #

Hashable ListCodeReviews Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.ListCodeReviews

AWSRequest ListCodeReviews Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.ListCodeReviews

Associated Types

type AWSResponse ListCodeReviews #

ToHeaders ListCodeReviews Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.ListCodeReviews

ToPath ListCodeReviews Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.ListCodeReviews

ToQuery ListCodeReviews Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.ListCodeReviews

type Rep ListCodeReviews Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.ListCodeReviews

type Rep ListCodeReviews = D1 ('MetaData "ListCodeReviews" "Amazonka.CodeGuruReviewer.ListCodeReviews" "libZSservicesZSamazonka-codeguru-reviewerZSamazonka-codeguru-reviewer" 'False) (C1 ('MetaCons "ListCodeReviews'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "states") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty JobState))) :*: (S1 ('MetaSel ('Just "providerTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty ProviderType))) :*: S1 ('MetaSel ('Just "repositoryNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Type)))))
type AWSResponse ListCodeReviews Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.ListCodeReviews

newListCodeReviews Source #

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: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.

$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:nextToken: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:maxResults:ListCodeReviews', listCodeReviews_maxResults - The maximum number of results that are returned per call. The default is 100.

$sel:type':ListCodeReviews', listCodeReviews_type - The type of code reviews to list in the response.

Request Lenses

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_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_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_maxResults :: Lens' ListCodeReviews (Maybe Natural) Source #

The maximum number of results that are returned per call. The default is 100.

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

Instances details
Eq ListCodeReviewsResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.ListCodeReviews

Read ListCodeReviewsResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.ListCodeReviews

Show ListCodeReviewsResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.ListCodeReviews

Generic ListCodeReviewsResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.ListCodeReviews

Associated Types

type Rep ListCodeReviewsResponse :: Type -> Type #

NFData ListCodeReviewsResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.ListCodeReviews

Methods

rnf :: ListCodeReviewsResponse -> () #

type Rep ListCodeReviewsResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.ListCodeReviews

type Rep ListCodeReviewsResponse = D1 ('MetaData "ListCodeReviewsResponse" "Amazonka.CodeGuruReviewer.ListCodeReviews" "libZSservicesZSamazonka-codeguru-reviewerZSamazonka-codeguru-reviewer" 'False) (C1 ('MetaCons "ListCodeReviewsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "codeReviewSummaries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [CodeReviewSummary])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.

$sel:nextToken: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.