{ "version":"2.0", "metadata":{ "apiVersion":"2019-09-19", "endpointPrefix":"codeguru-reviewer", "jsonVersion":"1.1", "protocol":"rest-json", "serviceAbbreviation":"CodeGuruReviewer", "serviceFullName":"Amazon CodeGuru Reviewer", "serviceId":"CodeGuru Reviewer", "signatureVersion":"v4", "signingName":"codeguru-reviewer", "uid":"codeguru-reviewer-2019-09-19" }, "operations":{ "AssociateRepository":{ "name":"AssociateRepository", "http":{ "method":"POST", "requestUri":"/associations" }, "input":{"shape":"AssociateRepositoryRequest"}, "output":{"shape":"AssociateRepositoryResponse"}, "errors":[ {"shape":"InternalServerException"}, {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ConflictException"}, {"shape":"ThrottlingException"} ], "documentation":"

Use to associate an AWS CodeCommit repository or a repostory managed by AWS CodeStar Connections with Amazon CodeGuru Reviewer. When you associate a repository, CodeGuru Reviewer reviews source code changes in the repository's pull requests and provides automatic recommendations. You can view recommendations using the CodeGuru Reviewer console. For more information, see Recommendations in Amazon CodeGuru Reviewer in the Amazon CodeGuru Reviewer User Guide.

If you associate a CodeCommit repository, it must be in the same AWS Region and AWS account where its CodeGuru Reviewer code reviews are configured.

Bitbucket and GitHub Enterprise Server repositories are managed by AWS CodeStar Connections to connect to CodeGuru Reviewer. For more information, see Connect to a repository source provider in the Amazon CodeGuru Reviewer User Guide.

You cannot use the CodeGuru Reviewer SDK or the AWS CLI to associate a GitHub repository with Amazon CodeGuru Reviewer. To associate a GitHub repository, use the console. For more information, see Getting started with CodeGuru Reviewer in the CodeGuru Reviewer User Guide.

" }, "DescribeCodeReview":{ "name":"DescribeCodeReview", "http":{ "method":"GET", "requestUri":"/codereviews/{CodeReviewArn}" }, "input":{"shape":"DescribeCodeReviewRequest"}, "output":{"shape":"DescribeCodeReviewResponse"}, "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"InternalServerException"}, {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ThrottlingException"} ], "documentation":"

Returns the metadata associated with the code review along with its status.

" }, "DescribeRecommendationFeedback":{ "name":"DescribeRecommendationFeedback", "http":{ "method":"GET", "requestUri":"/feedback/{CodeReviewArn}" }, "input":{"shape":"DescribeRecommendationFeedbackRequest"}, "output":{"shape":"DescribeRecommendationFeedbackResponse"}, "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"InternalServerException"}, {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ThrottlingException"} ], "documentation":"

Describes the customer feedback for a CodeGuru Reviewer recommendation.

" }, "DescribeRepositoryAssociation":{ "name":"DescribeRepositoryAssociation", "http":{ "method":"GET", "requestUri":"/associations/{AssociationArn}" }, "input":{"shape":"DescribeRepositoryAssociationRequest"}, "output":{"shape":"DescribeRepositoryAssociationResponse"}, "errors":[ {"shape":"NotFoundException"}, {"shape":"InternalServerException"}, {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ThrottlingException"} ], "documentation":"

Returns a RepositoryAssociation object that contains information about the requested repository association.

" }, "DisassociateRepository":{ "name":"DisassociateRepository", "http":{ "method":"DELETE", "requestUri":"/associations/{AssociationArn}" }, "input":{"shape":"DisassociateRepositoryRequest"}, "output":{"shape":"DisassociateRepositoryResponse"}, "errors":[ {"shape":"NotFoundException"}, {"shape":"InternalServerException"}, {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ConflictException"}, {"shape":"ThrottlingException"} ], "documentation":"

Removes the association between Amazon CodeGuru Reviewer and a repository.

" }, "ListCodeReviews":{ "name":"ListCodeReviews", "http":{ "method":"GET", "requestUri":"/codereviews" }, "input":{"shape":"ListCodeReviewsRequest"}, "output":{"shape":"ListCodeReviewsResponse"}, "errors":[ {"shape":"InternalServerException"}, {"shape":"ValidationException"}, {"shape":"ThrottlingException"}, {"shape":"AccessDeniedException"} ], "documentation":"

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

" }, "ListRecommendationFeedback":{ "name":"ListRecommendationFeedback", "http":{ "method":"GET", "requestUri":"/feedback/{CodeReviewArn}/RecommendationFeedback" }, "input":{"shape":"ListRecommendationFeedbackRequest"}, "output":{"shape":"ListRecommendationFeedbackResponse"}, "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"InternalServerException"}, {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ThrottlingException"} ], "documentation":"

Returns a list of RecommendationFeedbackSummary objects that contain customer recommendation feedback for all CodeGuru Reviewer users.

" }, "ListRecommendations":{ "name":"ListRecommendations", "http":{ "method":"GET", "requestUri":"/codereviews/{CodeReviewArn}/Recommendations" }, "input":{"shape":"ListRecommendationsRequest"}, "output":{"shape":"ListRecommendationsResponse"}, "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"InternalServerException"}, {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ThrottlingException"} ], "documentation":"

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

" }, "ListRepositoryAssociations":{ "name":"ListRepositoryAssociations", "http":{ "method":"GET", "requestUri":"/associations" }, "input":{"shape":"ListRepositoryAssociationsRequest"}, "output":{"shape":"ListRepositoryAssociationsResponse"}, "errors":[ {"shape":"InternalServerException"}, {"shape":"ValidationException"}, {"shape":"ThrottlingException"} ], "documentation":"

Returns a list of RepositoryAssociationSummary objects that contain summary information about a repository association. You can filter the returned list by ProviderType , Name , State , and Owner .

" }, "PutRecommendationFeedback":{ "name":"PutRecommendationFeedback", "http":{ "method":"PUT", "requestUri":"/feedback" }, "input":{"shape":"PutRecommendationFeedbackRequest"}, "output":{"shape":"PutRecommendationFeedbackResponse"}, "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"InternalServerException"}, {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ThrottlingException"} ], "documentation":"

Stores customer feedback for a CodeGuru Reviewer recommendation. When this API is called again with different reactions the previous feedback is overwritten.

" } }, "shapes":{ "AccessDeniedException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

You do not have sufficient access to perform this action.

", "error":{"httpStatusCode":403}, "exception":true }, "Arn":{ "type":"string", "max":1600, "min":1, "pattern":"^arn:aws[^:\\s]*:codeguru-reviewer:[^:\\s]+:[\\d]{12}:[a-z-]+:[\\w-]+$" }, "AssociateRepositoryRequest":{ "type":"structure", "required":["Repository"], "members":{ "Repository":{ "shape":"Repository", "documentation":"

The repository to associate.

" }, "ClientRequestToken":{ "shape":"ClientRequestToken", "documentation":"

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

To add a new repository association, this parameter specifies a unique identifier for the new repository association that helps ensure idempotency.

If you use the AWS CLI or one of the AWS SDKs to call this operation, you can leave this parameter empty. The CLI or SDK generates a random UUID for you and includes that in the request. If you don't use the SDK and instead generate a raw HTTP request to the Secrets Manager service endpoint, you must generate a ClientRequestToken yourself for new versions and include that value in the request.

You typically interact with this value if you implement your own retry logic and want to ensure that a given repository association is not created twice. We recommend that you generate a UUID-type value to ensure uniqueness within the specified repository association.

Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations if there are failures and retries.

", "idempotencyToken":true } } }, "AssociateRepositoryResponse":{ "type":"structure", "members":{ "RepositoryAssociation":{ "shape":"RepositoryAssociation", "documentation":"

Information about the repository association.

" } } }, "AssociationId":{ "type":"string", "max":64, "min":1 }, "ClientRequestToken":{ "type":"string", "max":64, "min":1, "pattern":"^[\\w-]+$" }, "CodeCommitRepository":{ "type":"structure", "required":["Name"], "members":{ "Name":{ "shape":"Name", "documentation":"

The name of the AWS CodeCommit repository. For more information, see repositoryName in the AWS CodeCommit API Reference.

" } }, "documentation":"

Information about an AWS CodeCommit repository. The CodeCommit repository must be in the same AWS Region and AWS account where its CodeGuru Reviewer code reviews are configured.

" }, "CodeReview":{ "type":"structure", "members":{ "Name":{ "shape":"Name", "documentation":"

The name of the code review.

" }, "CodeReviewArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the CodeReview object.

" }, "RepositoryName":{ "shape":"Name", "documentation":"

The name of the repository.

" }, "Owner":{ "shape":"Owner", "documentation":"

The owner of the repository. For an AWS CodeCommit repository, this is the AWS account ID of the account that owns the repository. For a GitHub or Bitbucket repository, this is the username for the account that owns the repository.

" }, "ProviderType":{ "shape":"ProviderType", "documentation":"

The type of repository that contains the reviewed code (for example, GitHub or Bitbucket).

" }, "State":{ "shape":"JobState", "documentation":"

The valid code review states are:

" }, "StateReason":{ "shape":"StateReason", "documentation":"

The reason for the state of the code review.

" }, "CreatedTimeStamp":{ "shape":"TimeStamp", "documentation":"

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

" }, "LastUpdatedTimeStamp":{ "shape":"TimeStamp", "documentation":"

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

" }, "Type":{ "shape":"Type", "documentation":"

The type of code review.

" }, "PullRequestId":{ "shape":"PullRequestId", "documentation":"

The pull request ID for the code review.

" }, "SourceCodeType":{ "shape":"SourceCodeType", "documentation":"

The type of the source code for the code review.

" }, "Metrics":{ "shape":"Metrics", "documentation":"

The statistics from the code review.

" } }, "documentation":"

Information about a code review.

" }, "CodeReviewSummaries":{ "type":"list", "member":{"shape":"CodeReviewSummary"} }, "CodeReviewSummary":{ "type":"structure", "members":{ "Name":{ "shape":"Name", "documentation":"

The name of the code review.

" }, "CodeReviewArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the CodeReview object.

" }, "RepositoryName":{ "shape":"Name", "documentation":"

The name of the repository.

" }, "Owner":{ "shape":"Owner", "documentation":"

The owner of the repository. For an AWS CodeCommit repository, this is the AWS account ID of the account that owns the repository. For a GitHub or Bitbucket repository, this is the username for the account that owns the repository.

" }, "ProviderType":{ "shape":"ProviderType", "documentation":"

The provider type of the repository association.

" }, "State":{ "shape":"JobState", "documentation":"

The state of the code review.

The valid code review states are:

" }, "CreatedTimeStamp":{ "shape":"TimeStamp", "documentation":"

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

" }, "LastUpdatedTimeStamp":{ "shape":"TimeStamp", "documentation":"

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

" }, "Type":{ "shape":"Type", "documentation":"

The type of the code review.

" }, "PullRequestId":{ "shape":"PullRequestId", "documentation":"

The pull request ID for the code review.

" }, "MetricsSummary":{ "shape":"MetricsSummary", "documentation":"

The statistics from the code review.

" } }, "documentation":"

Information about the summary of the code review.

" }, "CommitDiffSourceCodeType":{ "type":"structure", "members":{ "SourceCommit":{ "shape":"CommitId", "documentation":"

The SHA of the source commit.

" }, "DestinationCommit":{ "shape":"CommitId", "documentation":"

The SHA of the destination commit.

" } }, "documentation":"

The commit diff for the pull request.

" }, "CommitId":{ "type":"string", "max":64, "min":6 }, "ConflictException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.

", "error":{"httpStatusCode":409}, "exception":true }, "ConnectionArn":{ "type":"string", "max":256, "min":0, "pattern":"arn:aws(-[\\w]+)*:.+:.+:[0-9]{12}:.+" }, "DescribeCodeReviewRequest":{ "type":"structure", "required":["CodeReviewArn"], "members":{ "CodeReviewArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the CodeReview object.

", "location":"uri", "locationName":"CodeReviewArn" } } }, "DescribeCodeReviewResponse":{ "type":"structure", "members":{ "CodeReview":{ "shape":"CodeReview", "documentation":"

Information about the code review.

" } } }, "DescribeRecommendationFeedbackRequest":{ "type":"structure", "required":[ "CodeReviewArn", "RecommendationId" ], "members":{ "CodeReviewArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the CodeReview object.

", "location":"uri", "locationName":"CodeReviewArn" }, "RecommendationId":{ "shape":"RecommendationId", "documentation":"

The recommendation ID that can be used to track the provided recommendations and then to collect the feedback.

", "location":"querystring", "locationName":"RecommendationId" }, "UserId":{ "shape":"UserId", "documentation":"

Optional parameter to describe the feedback for a given user. If this is not supplied, it defaults to the user making the request.

The UserId is an IAM principal that can be specified as an AWS account ID or an Amazon Resource Name (ARN). For more information, see Specifying a Principal in the AWS Identity and Access Management User Guide.

", "location":"querystring", "locationName":"UserId" } } }, "DescribeRecommendationFeedbackResponse":{ "type":"structure", "members":{ "RecommendationFeedback":{ "shape":"RecommendationFeedback", "documentation":"

The recommendation feedback given by the user.

" } } }, "DescribeRepositoryAssociationRequest":{ "type":"structure", "required":["AssociationArn"], "members":{ "AssociationArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositories.

", "location":"uri", "locationName":"AssociationArn" } } }, "DescribeRepositoryAssociationResponse":{ "type":"structure", "members":{ "RepositoryAssociation":{ "shape":"RepositoryAssociation", "documentation":"

Information about the repository association.

" } } }, "DisassociateRepositoryRequest":{ "type":"structure", "required":["AssociationArn"], "members":{ "AssociationArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the RepositoryAssociation object.

", "location":"uri", "locationName":"AssociationArn" } } }, "DisassociateRepositoryResponse":{ "type":"structure", "members":{ "RepositoryAssociation":{ "shape":"RepositoryAssociation", "documentation":"

Information about the disassociated repository.

" } } }, "ErrorMessage":{"type":"string"}, "FilePath":{ "type":"string", "max":1024, "min":1 }, "FindingsCount":{"type":"long"}, "InternalServerException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

The server encountered an internal error and is unable to complete the request.

", "error":{"httpStatusCode":500}, "exception":true, "fault":true }, "JobState":{ "type":"string", "enum":[ "Completed", "Pending", "Failed", "Deleting" ] }, "JobStates":{ "type":"list", "member":{"shape":"JobState"}, "max":3, "min":1 }, "LineNumber":{"type":"integer"}, "ListCodeReviewsMaxResults":{ "type":"integer", "max":100, "min":1 }, "ListCodeReviewsRequest":{ "type":"structure", "required":["Type"], "members":{ "ProviderTypes":{ "shape":"ProviderTypes", "documentation":"

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

", "location":"querystring", "locationName":"ProviderTypes" }, "States":{ "shape":"JobStates", "documentation":"

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:

", "location":"querystring", "locationName":"States" }, "RepositoryNames":{ "shape":"RepositoryNames", "documentation":"

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

", "location":"querystring", "locationName":"RepositoryNames" }, "Type":{ "shape":"Type", "documentation":"

The type of code reviews to list in the response.

", "location":"querystring", "locationName":"Type" }, "MaxResults":{ "shape":"ListCodeReviewsMaxResults", "documentation":"

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

", "location":"querystring", "locationName":"MaxResults" }, "NextToken":{ "shape":"NextToken", "documentation":"

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.

", "location":"querystring", "locationName":"NextToken" } } }, "ListCodeReviewsResponse":{ "type":"structure", "members":{ "CodeReviewSummaries":{ "shape":"CodeReviewSummaries", "documentation":"

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

" }, "NextToken":{ "shape":"NextToken", "documentation":"

Pagination token.

" } } }, "ListRecommendationFeedbackRequest":{ "type":"structure", "required":["CodeReviewArn"], "members":{ "NextToken":{ "shape":"NextToken", "documentation":"

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.

", "location":"querystring", "locationName":"NextToken" }, "MaxResults":{ "shape":"MaxResults", "documentation":"

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

", "location":"querystring", "locationName":"MaxResults" }, "CodeReviewArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the CodeReview object.

", "location":"uri", "locationName":"CodeReviewArn" }, "UserIds":{ "shape":"UserIds", "documentation":"

An AWS user's account ID or Amazon Resource Name (ARN). Use this ID to query the recommendation feedback for a code review from that user.

The UserId is an IAM principal that can be specified as an AWS account ID or an Amazon Resource Name (ARN). For more information, see Specifying a Principal in the AWS Identity and Access Management User Guide.

", "location":"querystring", "locationName":"UserIds" }, "RecommendationIds":{ "shape":"RecommendationIds", "documentation":"

Used to query the recommendation feedback for a given recommendation.

", "location":"querystring", "locationName":"RecommendationIds" } } }, "ListRecommendationFeedbackResponse":{ "type":"structure", "members":{ "RecommendationFeedbackSummaries":{ "shape":"RecommendationFeedbackSummaries", "documentation":"

Recommendation feedback summaries corresponding to the code review ARN.

" }, "NextToken":{ "shape":"NextToken", "documentation":"

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.

" } } }, "ListRecommendationsRequest":{ "type":"structure", "required":["CodeReviewArn"], "members":{ "NextToken":{ "shape":"NextToken", "documentation":"

Pagination token.

", "location":"querystring", "locationName":"NextToken" }, "MaxResults":{ "shape":"MaxResults", "documentation":"

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

", "location":"querystring", "locationName":"MaxResults" }, "CodeReviewArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the CodeReview object.

", "location":"uri", "locationName":"CodeReviewArn" } } }, "ListRecommendationsResponse":{ "type":"structure", "members":{ "RecommendationSummaries":{ "shape":"RecommendationSummaries", "documentation":"

List of recommendations for the requested code review.

" }, "NextToken":{ "shape":"NextToken", "documentation":"

Pagination token.

" } } }, "ListRepositoryAssociationsRequest":{ "type":"structure", "members":{ "ProviderTypes":{ "shape":"ProviderTypes", "documentation":"

List of provider types to use as a filter.

", "location":"querystring", "locationName":"ProviderType" }, "States":{ "shape":"RepositoryAssociationStates", "documentation":"

List of repository association states to use as a filter.

The valid repository association states are:

", "location":"querystring", "locationName":"State" }, "Names":{ "shape":"Names", "documentation":"

List of repository names to use as a filter.

", "location":"querystring", "locationName":"Name" }, "Owners":{ "shape":"Owners", "documentation":"

List of owners to use as a filter. For AWS CodeCommit, it is the name of the CodeCommit account that was used to associate the repository. For other repository source providers, such as Bitbucket, this is name of the account that was used to associate the repository.

", "location":"querystring", "locationName":"Owner" }, "MaxResults":{ "shape":"MaxResults", "documentation":"

The maximum number of repository association results returned by ListRepositoryAssociations in paginated output. When this parameter is used, ListRepositoryAssociations only returns maxResults results in a single page with a nextToken response element. The remaining results of the initial request can be seen by sending another ListRepositoryAssociations request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, ListRepositoryAssociations returns up to 100 results and a nextToken value if applicable.

", "location":"querystring", "locationName":"MaxResults" }, "NextToken":{ "shape":"NextToken", "documentation":"

The nextToken value returned from a previous paginated ListRepositoryAssociations request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value.

Treat this token as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

", "location":"querystring", "locationName":"NextToken" } } }, "ListRepositoryAssociationsResponse":{ "type":"structure", "members":{ "RepositoryAssociationSummaries":{ "shape":"RepositoryAssociationSummaries", "documentation":"

A list of repository associations that meet the criteria of the request.

" }, "NextToken":{ "shape":"NextToken", "documentation":"

The nextToken value to include in a future ListRecommendations request. When the results of a ListRecommendations request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

" } } }, "MaxResults":{ "type":"integer", "max":100, "min":1 }, "MeteredLinesOfCodeCount":{"type":"long"}, "Metrics":{ "type":"structure", "members":{ "MeteredLinesOfCodeCount":{ "shape":"MeteredLinesOfCodeCount", "documentation":"

Lines of code metered in the code review. For the initial code review pull request and all subsequent revisions, this includes all lines of code in the files added to the pull request. In subsequent revisions, for files that already existed in the pull request, this includes only the changed lines of code. In both cases, this does not include non-code lines such as comments and import statements. For example, if you submit a pull request containing 5 files, each with 500 lines of code, and in a subsequent revision you added a new file with 200 lines of code, and also modified a total of 25 lines across the initial 5 files, MeteredLinesOfCodeCount includes the first 5 files (5 * 500 = 2,500 lines), the new file (200 lines) and the 25 changed lines of code for a total of 2,725 lines of code.

" }, "FindingsCount":{ "shape":"FindingsCount", "documentation":"

Total number of recommendations found in the code review.

" } }, "documentation":"

Information about the statistics from the code review.

" }, "MetricsSummary":{ "type":"structure", "members":{ "MeteredLinesOfCodeCount":{ "shape":"MeteredLinesOfCodeCount", "documentation":"

Lines of code metered in the code review. For the initial code review pull request and all subsequent revisions, this includes all lines of code in the files added to the pull request. In subsequent revisions, for files that already existed in the pull request, this includes only the changed lines of code. In both cases, this does not include non-code lines such as comments and import statements. For example, if you submit a pull request containing 5 files, each with 500 lines of code, and in a subsequent revision you added a new file with 200 lines of code, and also modified a total of 25 lines across the initial 5 files, MeteredLinesOfCodeCount includes the first 5 files (5 * 500 = 2,500 lines), the new file (200 lines) and the 25 changed lines of code for a total of 2,725 lines of code.

" }, "FindingsCount":{ "shape":"FindingsCount", "documentation":"

Total number of recommendations found in the code review.

" } }, "documentation":"

Information about metrics summaries.

" }, "Name":{ "type":"string", "max":100, "min":1, "pattern":"^\\S[\\w.-]*$" }, "Names":{ "type":"list", "member":{"shape":"Name"}, "max":3, "min":1 }, "NextToken":{ "type":"string", "max":2048, "min":1 }, "NotFoundException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

The resource specified in the request was not found.

", "error":{"httpStatusCode":404}, "exception":true }, "Owner":{ "type":"string", "max":100, "min":1, "pattern":"^\\S(.*\\S)?$" }, "Owners":{ "type":"list", "member":{"shape":"Owner"}, "max":3, "min":1 }, "ProviderType":{ "type":"string", "enum":[ "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer" ] }, "ProviderTypes":{ "type":"list", "member":{"shape":"ProviderType"}, "max":3, "min":1 }, "PullRequestId":{ "type":"string", "max":64, "min":1 }, "PutRecommendationFeedbackRequest":{ "type":"structure", "required":[ "CodeReviewArn", "RecommendationId", "Reactions" ], "members":{ "CodeReviewArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the CodeReview object.

" }, "RecommendationId":{ "shape":"RecommendationId", "documentation":"

The recommendation ID that can be used to track the provided recommendations and then to collect the feedback.

" }, "Reactions":{ "shape":"Reactions", "documentation":"

List for storing reactions. Reactions are utf-8 text code for emojis. If you send an empty list it clears all your feedback.

" } } }, "PutRecommendationFeedbackResponse":{ "type":"structure", "members":{ } }, "Reaction":{ "type":"string", "enum":[ "ThumbsUp", "ThumbsDown" ] }, "Reactions":{ "type":"list", "member":{"shape":"Reaction"}, "max":1, "min":0 }, "RecommendationFeedback":{ "type":"structure", "members":{ "CodeReviewArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the CodeReview object.

" }, "RecommendationId":{ "shape":"RecommendationId", "documentation":"

The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.

" }, "Reactions":{ "shape":"Reactions", "documentation":"

List for storing reactions. Reactions are utf-8 text code for emojis. You can send an empty list to clear off all your feedback.

" }, "UserId":{ "shape":"UserId", "documentation":"

The ID of the user that made the API call.

The UserId is an IAM principal that can be specified as an AWS account ID or an Amazon Resource Name (ARN). For more information, see Specifying a Principal in the AWS Identity and Access Management User Guide.

" }, "CreatedTimeStamp":{ "shape":"TimeStamp", "documentation":"

The time at which the feedback was created.

" }, "LastUpdatedTimeStamp":{ "shape":"TimeStamp", "documentation":"

The time at which the feedback was last updated.

" } }, "documentation":"

Information about the recommendation feedback.

" }, "RecommendationFeedbackSummaries":{ "type":"list", "member":{"shape":"RecommendationFeedbackSummary"} }, "RecommendationFeedbackSummary":{ "type":"structure", "members":{ "RecommendationId":{ "shape":"RecommendationId", "documentation":"

The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.

" }, "Reactions":{ "shape":"Reactions", "documentation":"

List for storing reactions. Reactions are utf-8 text code for emojis.

" }, "UserId":{ "shape":"UserId", "documentation":"

The ID of the user that gave the feedback.

The UserId is an IAM principal that can be specified as an AWS account ID or an Amazon Resource Name (ARN). For more information, see Specifying a Principal in the AWS Identity and Access Management User Guide.

" } }, "documentation":"

Information about recommendation feedback summaries.

" }, "RecommendationId":{ "type":"string", "max":64, "min":1 }, "RecommendationIds":{ "type":"list", "member":{"shape":"RecommendationId"}, "max":100, "min":1 }, "RecommendationSummaries":{ "type":"list", "member":{"shape":"RecommendationSummary"} }, "RecommendationSummary":{ "type":"structure", "members":{ "FilePath":{ "shape":"FilePath", "documentation":"

Name of the file on which a recommendation is provided.

" }, "RecommendationId":{ "shape":"RecommendationId", "documentation":"

The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.

" }, "StartLine":{ "shape":"LineNumber", "documentation":"

Start line from where the recommendation is applicable in the source commit or source branch.

" }, "EndLine":{ "shape":"LineNumber", "documentation":"

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":{ "shape":"Text", "documentation":"

A description of the recommendation generated by CodeGuru Reviewer for the lines of code between the start line and the end line.

" } }, "documentation":"

Information about recommendations.

" }, "Repository":{ "type":"structure", "members":{ "CodeCommit":{ "shape":"CodeCommitRepository", "documentation":"

Information about an AWS CodeCommit repository.

" }, "Bitbucket":{ "shape":"ThirdPartySourceRepository", "documentation":"

Information about a Bitbucket repository.

" }, "GitHubEnterpriseServer":{ "shape":"ThirdPartySourceRepository", "documentation":"

Information about a GitHub Enterprise Server repository.

" } }, "documentation":"

Information about an associated AWS CodeCommit repository or an associated repository that is managed by AWS CodeStar Connections (for example, Bitbucket). This Repository object is not used if your source code is in an associated GitHub repository.

" }, "RepositoryAssociation":{ "type":"structure", "members":{ "AssociationId":{ "shape":"AssociationId", "documentation":"

The ID of the repository association.

" }, "AssociationArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) identifying the repository association.

" }, "ConnectionArn":{ "shape":"ConnectionArn", "documentation":"

The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection. Its format is arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. For more information, see Connection in the AWS CodeStar Connections API Reference.

" }, "Name":{ "shape":"Name", "documentation":"

The name of the repository.

" }, "Owner":{ "shape":"Owner", "documentation":"

The owner of the repository. For an AWS CodeCommit repository, this is the AWS account ID of the account that owns the repository. For a GitHub or Bitbucket repository, this is the username for the account that owns the repository.

" }, "ProviderType":{ "shape":"ProviderType", "documentation":"

The provider type of the repository association.

" }, "State":{ "shape":"RepositoryAssociationState", "documentation":"

The state of the repository association.

The valid repository association states are:

" }, "StateReason":{ "shape":"StateReason", "documentation":"

A description of why the repository association is in the current state.

" }, "LastUpdatedTimeStamp":{ "shape":"TimeStamp", "documentation":"

The time, in milliseconds since the epoch, when the repository association was last updated.

" }, "CreatedTimeStamp":{ "shape":"TimeStamp", "documentation":"

The time, in milliseconds since the epoch, when the repository association was created.

" } }, "documentation":"

Information about a repository association. The DescribeRepositoryAssociation operation returns a RepositoryAssociation object.

" }, "RepositoryAssociationState":{ "type":"string", "enum":[ "Associated", "Associating", "Failed", "Disassociating" ] }, "RepositoryAssociationStates":{ "type":"list", "member":{"shape":"RepositoryAssociationState"}, "max":3, "min":1 }, "RepositoryAssociationSummaries":{ "type":"list", "member":{"shape":"RepositoryAssociationSummary"} }, "RepositoryAssociationSummary":{ "type":"structure", "members":{ "AssociationArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the RepositoryAssociation object.

" }, "ConnectionArn":{ "shape":"ConnectionArn", "documentation":"

The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection. Its format is arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. For more information, see Connection in the AWS CodeStar Connections API Reference.

" }, "LastUpdatedTimeStamp":{ "shape":"TimeStamp", "documentation":"

The time, in milliseconds since the epoch, since the repository association was last updated.

" }, "AssociationId":{ "shape":"AssociationId", "documentation":"

The repository association ID.

" }, "Name":{ "shape":"Name", "documentation":"

The name of the repository association.

" }, "Owner":{ "shape":"Owner", "documentation":"

The owner of the repository. For an AWS CodeCommit repository, this is the AWS account ID of the account that owns the repository. For a GitHub or Bitbucket repository, this is the username for the account that owns the repository.

" }, "ProviderType":{ "shape":"ProviderType", "documentation":"

The provider type of the repository association.

" }, "State":{ "shape":"RepositoryAssociationState", "documentation":"

The state of the repository association.

The valid repository association states are:

" } }, "documentation":"

Summary information about a repository association. The ListRepositoryAssociations operation returns a list of RepositoryAssociationSummary objects.

" }, "RepositoryNames":{ "type":"list", "member":{"shape":"Name"}, "max":100, "min":1 }, "ResourceNotFoundException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

The resource specified in the request was not found.

", "error":{"httpStatusCode":404}, "exception":true }, "SourceCodeType":{ "type":"structure", "members":{ "CommitDiff":{ "shape":"CommitDiffSourceCodeType", "documentation":"

The commit diff for the pull request.

" } }, "documentation":"

Information about the source code type.

" }, "StateReason":{ "type":"string", "max":256, "min":0 }, "Text":{ "type":"string", "max":2048, "min":1 }, "ThirdPartySourceRepository":{ "type":"structure", "required":[ "Name", "ConnectionArn", "Owner" ], "members":{ "Name":{ "shape":"Name", "documentation":"

The name of the third party source repository.

" }, "ConnectionArn":{ "shape":"ConnectionArn", "documentation":"

The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection. Its format is arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id. For more information, see Connection in the AWS CodeStar Connections API Reference.

" }, "Owner":{ "shape":"Owner", "documentation":"

The owner of the repository. For a GitHub, GitHub Enterprise, or Bitbucket repository, this is the username for the account that owns the repository.

" } }, "documentation":"

Information about a third-party source repository connected to CodeGuru Reviewer.

" }, "ThrottlingException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

The request was denied due to request throttling.

", "error":{"httpStatusCode":429}, "exception":true }, "TimeStamp":{"type":"timestamp"}, "Type":{ "type":"string", "enum":["PullRequest"] }, "UserId":{ "type":"string", "max":256, "min":1 }, "UserIds":{ "type":"list", "member":{"shape":"UserId"}, "max":100, "min":1 }, "ValidationException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

The input fails to satisfy the specified constraints.

", "error":{"httpStatusCode":400}, "exception":true } }, "documentation":"

This section provides documentation for the Amazon CodeGuru Reviewer API operations. CodeGuru Reviewer is a service that uses program analysis and machine learning to detect potential defects that are difficult for developers to find and recommends fixes in your Java code.

By proactively detecting and providing recommendations for addressing code defects and implementing best practices, CodeGuru Reviewer improves the overall quality and maintainability of your code base during the code review stage. For more information about CodeGuru Reviewer, see the Amazon CodeGuru Reviewer User Guide.

" }