@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 and Python 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.
To improve the security of your CodeGuru Reviewer API calls, you can establish a private connection between your VPC and CodeGuru Reviewer by creating an interface VPC endpoint. For more information, see CodeGuru Reviewer and interface VPC endpoints (Amazon Web Services PrivateLink) in the Amazon CodeGuru Reviewer User Guide.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
AssociateRepositoryResult |
associateRepository(AssociateRepositoryRequest request)
Use to associate an Amazon Web Services CodeCommit repository or a repostory managed by Amazon Web Services
CodeStar Connections with Amazon CodeGuru Reviewer.
|
static AmazonCodeGuruReviewerClientBuilder |
builder() |
CreateCodeReviewResult |
createCodeReview(CreateCodeReviewRequest request)
Use to create a code review with a
CodeReviewType of RepositoryAnalysis . |
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. |
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest request)
Returns the list of tags associated with an associated repository resource.
|
PutRecommendationFeedbackResult |
putRecommendationFeedback(PutRecommendationFeedbackRequest request)
Stores customer feedback for a CodeGuru Reviewer recommendation.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
TagResourceResult |
tagResource(TagResourceRequest request)
Adds one or more tags to an associated repository.
|
UntagResourceResult |
untagResource(UntagResourceRequest request)
Removes a tag from an associated repository.
|
AmazonCodeGuruReviewerWaiters |
waiters() |
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
public static AmazonCodeGuruReviewerClientBuilder builder()
public AssociateRepositoryResult associateRepository(AssociateRepositoryRequest request)
Use to associate an Amazon Web Services CodeCommit repository or a repostory managed by Amazon Web Services 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 or S3 repository, it must be in the same Amazon Web Services Region and Amazon Web Services account where its CodeGuru Reviewer code reviews are configured.
Bitbucket and GitHub Enterprise Server repositories are managed by Amazon Web Services CodeStar Connections to connect to CodeGuru Reviewer. For more information, see Associate a repository in the Amazon CodeGuru Reviewer User Guide.
You cannot use the CodeGuru Reviewer SDK or the Amazon Web Services 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 AmazonCodeGuruReviewer
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.public CreateCodeReviewResult createCodeReview(CreateCodeReviewRequest request)
Use to create a code review with a
CodeReviewType
of RepositoryAnalysis
. This type of code review analyzes all code
under a specified branch in an associated repository. PullRequest
code reviews are automatically
triggered by a pull request.
createCodeReview
in interface AmazonCodeGuruReviewer
createCodeReviewRequest
- 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.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.AccessDeniedException
- You do not have sufficient access to perform this action.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 AmazonCodeGuruReviewer
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.public DescribeRecommendationFeedbackResult describeRecommendationFeedback(DescribeRecommendationFeedbackRequest request)
Describes the customer feedback for a CodeGuru Reviewer recommendation.
describeRecommendationFeedback
in interface AmazonCodeGuruReviewer
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.public DescribeRepositoryAssociationResult describeRepositoryAssociation(DescribeRepositoryAssociationRequest request)
Returns a
RepositoryAssociation
object that contains information about the requested repository
association.
describeRepositoryAssociation
in interface AmazonCodeGuruReviewer
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.public DisassociateRepositoryResult disassociateRepository(DisassociateRepositoryRequest request)
Removes the association between Amazon CodeGuru Reviewer and a repository.
disassociateRepository
in interface AmazonCodeGuruReviewer
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.public ListCodeReviewsResult listCodeReviews(ListCodeReviewsRequest request)
Lists all the code reviews that the customer has created in the past 90 days.
listCodeReviews
in interface AmazonCodeGuruReviewer
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.public ListRecommendationFeedbackResult listRecommendationFeedback(ListRecommendationFeedbackRequest request)
Returns a list of
RecommendationFeedbackSummary
objects that contain customer recommendation feedback for all
CodeGuru Reviewer users.
listRecommendationFeedback
in interface AmazonCodeGuruReviewer
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.public ListRecommendationsResult listRecommendations(ListRecommendationsRequest request)
Returns the list of all recommendations for a completed code review.
listRecommendations
in interface AmazonCodeGuruReviewer
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.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 AmazonCodeGuruReviewer
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.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Returns the list of tags associated with an associated repository resource.
listTagsForResource
in interface AmazonCodeGuruReviewer
listTagsForResourceRequest
- InternalServerException
- The server encountered an internal error and is unable to complete the request.ValidationException
- The input fails to satisfy the specified constraints.ResourceNotFoundException
- The resource specified in the request was not found.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 AmazonCodeGuruReviewer
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.public TagResourceResult tagResource(TagResourceRequest request)
Adds one or more tags to an associated repository.
tagResource
in interface AmazonCodeGuruReviewer
tagResourceRequest
- InternalServerException
- The server encountered an internal error and is unable to complete the request.ValidationException
- The input fails to satisfy the specified constraints.ResourceNotFoundException
- The resource specified in the request was not found.public UntagResourceResult untagResource(UntagResourceRequest request)
Removes a tag from an associated repository.
untagResource
in interface AmazonCodeGuruReviewer
untagResourceRequest
- InternalServerException
- The server encountered an internal error and is unable to complete the request.ValidationException
- The input fails to satisfy the specified constraints.ResourceNotFoundException
- The resource specified in the request was not found.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 AmazonCodeGuruReviewer
request
- The originally executed requestpublic AmazonCodeGuruReviewerWaiters waiters()
waiters
in interface AmazonCodeGuruReviewer
public void shutdown()
AmazonWebServiceClient
shutdown
in interface AmazonCodeGuruReviewer
shutdown
in class AmazonWebServiceClient