---
title: "GET /codereviews/{CodeReviewArn}/Recommendations"
method: GET
path: "/codereviews/{CodeReviewArn}/Recommendations"
---

# GET /codereviews/{CodeReviewArn}/Recommendations

`GET /codereviews/{CodeReviewArn}/Recommendations`

Returns the list of all recommendations for a completed code review.

## Path parameters

- `CodeReviewArn` string, required

## Query parameters

- `NextToken` string
- `MaxResults` integer

## Response `200`

Success

- ListRecommendationsResponse
  - `RecommendationSummaries` RecommendationSummary[] — List of recommendations for the requested code review.
    - `FilePath` string — Name of the file on which a recommendation is provided.
    - `RecommendationId` string — The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.
    - `StartLine` integer — Start line from where the recommendation is applicable in the source commit or source branch.
    - `EndLine` integer — Last line where the recommendation is applicable in the source commit or source branch. For a single line comment the start line and end line values are the same.
    - `Description` string — A description of the recommendation generated by CodeGuru Reviewer for the lines of code between the start line and the end line.
    - `RecommendationCategory` 'AWSBestPractices' | 'AWSCloudFormationIssues' | 'DuplicateCode' | 'CodeMaintenanceIssues' | 'ConcurrencyIssues' | 'InputValidations' | 'PythonBestPractices' | 'JavaBestPractices' | 'ResourceLeaks' | 'SecurityIssues' | 'CodeInconsistencies' — The type of a recommendation.
    - `RuleMetadata` object — Metadata about a rule. Rule metadata includes an ID, a name, a list of tags, and a short and long description. CodeGuru Reviewer uses rules to analyze code. A rule's recommendation is included in analysis results if code is detected that violates the rule.
      - `RuleId` string — The ID of the rule.
      - `RuleName` string — The name of the rule.
      - `ShortDescription` string — A short description of the rule.
      - `LongDescription` string — A long description of the rule.
      - `RuleTags` RuleTag[] — Tags that are associated with the rule.
    - `Severity` 'Info' | 'Low' | 'Medium' | 'High' | 'Critical' — The severity of the issue in the code that generated this recommendation.
  - `NextToken` string — Pagination token.

## Other responses

- `480` — ResourceNotFoundException
- `481` — InternalServerException
- `482` — ValidationException
- `483` — AccessDeniedException
- `484` — ThrottlingException

---

[API](https://skmtc.net/aws/apis/codeguru-reviewer.md) · [All operations](https://skmtc.net/aws/apis/codeguru-reviewer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/codeguru-reviewer/versions/cb6ad5d08771/schema)
