2021/09/03 - Amazon CodeGuru Reviewer - 1 updated api methods
Changes Added support for CodeInconsistencies detectors
{'RecommendationSummaries': {'RecommendationCategory': {'CodeInconsistencies'}}}
Returns the list of all recommendations for a completed code review.
See also: AWS API Documentation
Request Syntax
client.list_recommendations( NextToken='string', MaxResults=123, CodeReviewArn='string' )
string
Pagination token.
integer
The maximum number of results that are returned per call. The default is 100.
string
[REQUIRED]
The Amazon Resource Name (ARN) of the ` CodeReview https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html`__ object.
dict
Response Syntax
{ 'RecommendationSummaries': [ { 'FilePath': 'string', 'RecommendationId': 'string', 'StartLine': 123, 'EndLine': 123, 'Description': 'string', 'RecommendationCategory': 'AWSBestPractices'|'AWSCloudFormationIssues'|'DuplicateCode'|'CodeMaintenanceIssues'|'ConcurrencyIssues'|'InputValidations'|'PythonBestPractices'|'JavaBestPractices'|'ResourceLeaks'|'SecurityIssues'|'CodeInconsistencies' }, ], 'NextToken': 'string' }
Response Structure
(dict) --
RecommendationSummaries (list) --
List of recommendations for the requested code review.
(dict) --
Information about recommendations.
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 (string) --
The type of a recommendation.
NextToken (string) --
Pagination token.