@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonCodeGuruReviewerClient extends AmazonWebServiceClient implements AmazonCodeGuruReviewer
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.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
AssociateRepositoryResult |
associateRepository(AssociateRepositoryRequest request)
Use to associate an AWS CodeCommit repository or a repostory managed by AWS CodeStar Connections with Amazon
CodeGuru Reviewer.
|
static AmazonCodeGuruReviewerClientBuilder |
builder() |
DescribeCodeReviewResult |
describeCodeReview(DescribeCodeReviewRequest request)
Returns the metadata associated with the code review along with its status.
|
DescribeRecommendationFeedbackResult |
describeRecommendationFeedback(DescribeRecommendationFeedbackRequest request)
Describes the customer feedback for a CodeGuru Reviewer recommendation.
|
DescribeRepositoryAssociationResult |
describeRepositoryAssociation(DescribeRepositoryAssociationRequest request)
Returns a
RepositoryAssociation object that contains information about the requested repository
association. |
DisassociateRepositoryResult |
disassociateRepository(DisassociateRepositoryRequest request)
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 request)
Lists all the code reviews that the customer has created in the past 90 days.
|
ListRecommendationFeedbackResult |
listRecommendationFeedback(ListRecommendationFeedbackRequest request)
Returns a list of
RecommendationFeedbackSummary objects that contain customer recommendation feedback for all
CodeGuru Reviewer users. |
ListRecommendationsResult |
listRecommendations(ListRecommendationsRequest request)
Returns the list of all recommendations for a completed code review.
|
ListRepositoryAssociationsResult |
listRepositoryAssociations(ListRepositoryAssociationsRequest request)
Returns a list of
RepositoryAssociationSummary objects that contain summary information about a repository
association. |
PutRecommendationFeedbackResult |
putRecommendationFeedback(PutRecommendationFeedbackRequest request)
Stores customer feedback for a CodeGuru Reviewer recommendation.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshutdownpublic static AmazonCodeGuruReviewerClientBuilder builder()
public AssociateRepositoryResult associateRepository(AssociateRepositoryRequest request)
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.
associateRepository in interface AmazonCodeGuruReviewerassociateRepositoryRequest - 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.public DescribeCodeReviewResult describeCodeReview(DescribeCodeReviewRequest request)
Returns the metadata associated with the code review along with its status.
describeCodeReview in interface AmazonCodeGuruReviewerdescribeCodeReviewRequest - 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.public DescribeRecommendationFeedbackResult describeRecommendationFeedback(DescribeRecommendationFeedbackRequest request)
Describes the customer feedback for a CodeGuru Reviewer recommendation.
describeRecommendationFeedback in interface AmazonCodeGuruReviewerdescribeRecommendationFeedbackRequest - 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.public DescribeRepositoryAssociationResult describeRepositoryAssociation(DescribeRepositoryAssociationRequest request)
Returns a
RepositoryAssociation object that contains information about the requested repository
association.
describeRepositoryAssociation in interface AmazonCodeGuruReviewerdescribeRepositoryAssociationRequest - 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.public DisassociateRepositoryResult disassociateRepository(DisassociateRepositoryRequest request)
Removes the association between Amazon CodeGuru Reviewer and a repository.
disassociateRepository in interface AmazonCodeGuruReviewerdisassociateRepositoryRequest - 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.public ListCodeReviewsResult listCodeReviews(ListCodeReviewsRequest request)
Lists all the code reviews that the customer has created in the past 90 days.
listCodeReviews in interface AmazonCodeGuruReviewerlistCodeReviewsRequest - 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.public ListRecommendationFeedbackResult listRecommendationFeedback(ListRecommendationFeedbackRequest request)
Returns a list of
RecommendationFeedbackSummary objects that contain customer recommendation feedback for all
CodeGuru Reviewer users.
listRecommendationFeedback in interface AmazonCodeGuruReviewerlistRecommendationFeedbackRequest - 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.public ListRecommendationsResult listRecommendations(ListRecommendationsRequest request)
Returns the list of all recommendations for a completed code review.
listRecommendations in interface AmazonCodeGuruReviewerlistRecommendationsRequest - 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.public ListRepositoryAssociationsResult listRepositoryAssociations(ListRepositoryAssociationsRequest request)
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 .
listRepositoryAssociations in interface AmazonCodeGuruReviewerlistRepositoryAssociationsRequest - 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.public PutRecommendationFeedbackResult putRecommendationFeedback(PutRecommendationFeedbackRequest request)
Stores customer feedback for a CodeGuru Reviewer recommendation. When this API is called again with different reactions the previous feedback is overwritten.
putRecommendationFeedback in interface AmazonCodeGuruReviewerputRecommendationFeedbackRequest - 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.public 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 the request.
getCachedResponseMetadata in interface AmazonCodeGuruReviewerrequest - The originally executed requestCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.