@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AmazonCodeGuruReviewer
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAmazonCodeGuruReviewer
instead.
This section provides documentation for the Amazon CodeGuru Reviewer API operations. Amazon 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.
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_PREFIX
The region metadata service name for computing region endpoints.
|
Modifier and Type | Method and Description |
---|---|
AssociateRepositoryResult |
associateRepository(AssociateRepositoryRequest associateRepositoryRequest)
Associates an AWS CodeCommit repository with Amazon CodeGuru Reviewer.
|
DescribeCodeReviewResult |
describeCodeReview(DescribeCodeReviewRequest describeCodeReviewRequest)
Returns the metadaata associated with the code review along with its status.
|
DescribeRecommendationFeedbackResult |
describeRecommendationFeedback(DescribeRecommendationFeedbackRequest describeRecommendationFeedbackRequest)
Describes the customer feedback for a CodeGuru Reviewer recommendation.
|
DescribeRepositoryAssociationResult |
describeRepositoryAssociation(DescribeRepositoryAssociationRequest describeRepositoryAssociationRequest)
Describes a repository association.
|
DisassociateRepositoryResult |
disassociateRepository(DisassociateRepositoryRequest disassociateRepositoryRequest)
Removes the association between Amazon CodeGuru Reviewer and a repository.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
ListCodeReviewsResult |
listCodeReviews(ListCodeReviewsRequest listCodeReviewsRequest)
Lists all the code reviews that the customer has created in the past 90 days.
|
ListRecommendationFeedbackResult |
listRecommendationFeedback(ListRecommendationFeedbackRequest listRecommendationFeedbackRequest)
Lists the customer feedback for a CodeGuru Reviewer recommendation for all users.
|
ListRecommendationsResult |
listRecommendations(ListRecommendationsRequest listRecommendationsRequest)
Returns the list of all recommendations for a completed code review.
|
ListRepositoryAssociationsResult |
listRepositoryAssociations(ListRepositoryAssociationsRequest listRepositoryAssociationsRequest)
Lists repository associations.
|
PutRecommendationFeedbackResult |
putRecommendationFeedback(PutRecommendationFeedbackRequest putRecommendationFeedbackRequest)
Stores customer feedback for a CodeGuru-Reviewer recommendation.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
static final String ENDPOINT_PREFIX
AssociateRepositoryResult associateRepository(AssociateRepositoryRequest associateRepositoryRequest)
Associates an AWS CodeCommit repository with Amazon CodeGuru Reviewer. When you associate an AWS CodeCommit repository with Amazon CodeGuru Reviewer, Amazon CodeGuru Reviewer will provide recommendations for each pull request raised within the repository. You can view recommendations in the AWS CodeCommit repository.
You can associate a GitHub repository using the Amazon CodeGuru Reviewer console.
associateRepositoryRequest
- InternalServerException
- The server encountered an internal error and is unable to complete the request.ValidationException
- The input fails to satisfy the specified constraints.AccessDeniedException
- You do not have sufficient access to perform this action.ConflictException
- 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.ThrottlingException
- The request was denied due to request throttling.DescribeCodeReviewResult describeCodeReview(DescribeCodeReviewRequest describeCodeReviewRequest)
Returns the metadaata associated with the code review along with its status.
describeCodeReviewRequest
- ResourceNotFoundException
- The resource specified in the request was not found.InternalServerException
- The server encountered an internal error and is unable to complete the request.ValidationException
- The input fails to satisfy the specified constraints.AccessDeniedException
- You do not have sufficient access to perform this action.ThrottlingException
- The request was denied due to request throttling.DescribeRecommendationFeedbackResult describeRecommendationFeedback(DescribeRecommendationFeedbackRequest describeRecommendationFeedbackRequest)
Describes the customer feedback for a CodeGuru Reviewer recommendation.
describeRecommendationFeedbackRequest
- ResourceNotFoundException
- The resource specified in the request was not found.InternalServerException
- The server encountered an internal error and is unable to complete the request.ValidationException
- The input fails to satisfy the specified constraints.AccessDeniedException
- You do not have sufficient access to perform this action.ThrottlingException
- The request was denied due to request throttling.DescribeRepositoryAssociationResult describeRepositoryAssociation(DescribeRepositoryAssociationRequest describeRepositoryAssociationRequest)
Describes a repository association.
describeRepositoryAssociationRequest
- NotFoundException
- The resource specified in the request was not found.InternalServerException
- The server encountered an internal error and is unable to complete the request.ValidationException
- The input fails to satisfy the specified constraints.AccessDeniedException
- You do not have sufficient access to perform this action.ThrottlingException
- The request was denied due to request throttling.DisassociateRepositoryResult disassociateRepository(DisassociateRepositoryRequest disassociateRepositoryRequest)
Removes the association between Amazon CodeGuru Reviewer and a repository.
disassociateRepositoryRequest
- NotFoundException
- The resource specified in the request was not found.InternalServerException
- The server encountered an internal error and is unable to complete the request.ValidationException
- The input fails to satisfy the specified constraints.AccessDeniedException
- You do not have sufficient access to perform this action.ConflictException
- 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.ThrottlingException
- The request was denied due to request throttling.ListCodeReviewsResult listCodeReviews(ListCodeReviewsRequest listCodeReviewsRequest)
Lists all the code reviews that the customer has created in the past 90 days.
listCodeReviewsRequest
- InternalServerException
- The server encountered an internal error and is unable to complete the request.ValidationException
- The input fails to satisfy the specified constraints.ThrottlingException
- The request was denied due to request throttling.AccessDeniedException
- You do not have sufficient access to perform this action.ListRecommendationFeedbackResult listRecommendationFeedback(ListRecommendationFeedbackRequest listRecommendationFeedbackRequest)
Lists the customer feedback for a CodeGuru Reviewer recommendation for all users. This API will be used from the console to extract the previously given feedback by the user to pre-populate the feedback emojis for all recommendations.
listRecommendationFeedbackRequest
- ResourceNotFoundException
- The resource specified in the request was not found.InternalServerException
- The server encountered an internal error and is unable to complete the request.ValidationException
- The input fails to satisfy the specified constraints.AccessDeniedException
- You do not have sufficient access to perform this action.ThrottlingException
- The request was denied due to request throttling.ListRecommendationsResult listRecommendations(ListRecommendationsRequest listRecommendationsRequest)
Returns the list of all recommendations for a completed code review.
listRecommendationsRequest
- ResourceNotFoundException
- The resource specified in the request was not found.InternalServerException
- The server encountered an internal error and is unable to complete the request.ValidationException
- The input fails to satisfy the specified constraints.AccessDeniedException
- You do not have sufficient access to perform this action.ThrottlingException
- The request was denied due to request throttling.ListRepositoryAssociationsResult listRepositoryAssociations(ListRepositoryAssociationsRequest listRepositoryAssociationsRequest)
Lists repository associations. You can optionally filter on one or more of the following recommendation properties: provider types, states, names, and owners.
listRepositoryAssociationsRequest
- InternalServerException
- The server encountered an internal error and is unable to complete the request.ValidationException
- The input fails to satisfy the specified constraints.ThrottlingException
- The request was denied due to request throttling.PutRecommendationFeedbackResult putRecommendationFeedback(PutRecommendationFeedbackRequest putRecommendationFeedbackRequest)
Stores customer feedback for a CodeGuru-Reviewer recommendation. When this API is called again with different reactions the previous feedback is overwritten.
putRecommendationFeedbackRequest
- ResourceNotFoundException
- The resource specified in the request was not found.InternalServerException
- The server encountered an internal error and is unable to complete the request.ValidationException
- The input fails to satisfy the specified constraints.AccessDeniedException
- You do not have sufficient access to perform this action.ThrottlingException
- The request was denied due to request throttling.void shutdown()
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
request
- The originally executed request.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.