Table Of Contents

Feedback

User Guide

First time using the AWS CLI? See the User Guide for help getting started.

Note: You are viewing the documentation for an older major version of the AWS CLI (version 1).

AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. For more information see the AWS CLI version 2 installation instructions and migration guide.

[ aws . codeguru-reviewer ]

list-code-reviews

Description

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

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.

Synopsis

  list-code-reviews
[--provider-types <value>]
[--states <value>]
[--repository-names <value>]
--type <value>
[--max-results <value>]
[--next-token <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]

Options

--provider-types (list)

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

Syntax:

"string" "string" ...

Where valid values are:
  CodeCommit
  GitHub
  Bitbucket

--states (list)

List of states for filtering that needs to be applied before displaying the result. For example, "states=[Pending]" will list code reviews in the Pending state.

Syntax:

"string" "string" ...

Where valid values are:
  Completed
  Pending
  Failed
  Deleting

--repository-names (list)

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

Syntax:

"string" "string" ...

--type (string)

The type of code reviews to list in the response.

Possible values:

  • PullRequest

--max-results (integer)

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

--next-token (string)

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.

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

See 'aws help' for descriptions of global parameters.

Output

CodeReviewSummaries -> (list)

A list of code reviews that meet the criteria of the request.

(structure)

Information about the summary of the code review.

Name -> (string)

The name of the code review.

CodeReviewArn -> (string)

The Amazon Resource Name (ARN) of the code review to describe.

RepositoryName -> (string)

The name of the repository.

Owner -> (string)

The owner of the repository.

ProviderType -> (string)

The provider type of the repository association.

State -> (string)

The state of the code review.

CreatedTimeStamp -> (timestamp)

The time, in milliseconds since the epoch, when the code review was created.

LastUpdatedTimeStamp -> (timestamp)

The time, in milliseconds since the epoch, when the code review was last updated.

Type -> (string)

The type of the code review.

PullRequestId -> (string)

The pull request ID for the code review.

MetricsSummary -> (structure)

The statistics from the code review.

MeteredLinesOfCodeCount -> (long)

Lines of code metered in the code review.

FindingsCount -> (long)

Total number of recommendations found in the code review.

NextToken -> (string)

Pagination token.