JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.codegurureviewer

Interface AmazonCodeGuruReviewer

    • Method Detail

      • associateRepository

        AssociateRepositoryResult associateRepository(AssociateRepositoryRequest associateRepositoryRequest)

        Use to associate an Amazon Web Services CodeCommit repository or a repository 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.

        Parameters:
        associateRepositoryRequest -
        Returns:
        Result of the AssociateRepository operation returned by the service.
        Throws:
        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.
        See Also:
        AWS API Documentation
      • createCodeReview

        CreateCodeReviewResult createCodeReview(CreateCodeReviewRequest createCodeReviewRequest)

        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.

        Parameters:
        createCodeReviewRequest -
        Returns:
        Result of the CreateCodeReview operation returned by the service.
        Throws:
        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.
        See Also:
        AWS API Documentation
      • disassociateRepository

        DisassociateRepositoryResult disassociateRepository(DisassociateRepositoryRequest disassociateRepositoryRequest)

        Removes the association between Amazon CodeGuru Reviewer and a repository.

        Parameters:
        disassociateRepositoryRequest -
        Returns:
        Result of the DisassociateRepository operation returned by the service.
        Throws:
        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.
        See Also:
        AWS API Documentation
      • shutdown

        void shutdown()
        Shuts down this client object, releasing any resources that might be held open. This is an optional method, and callers are not expected to call it, but can if they want to explicitly release any open resources. Once a client has been shutdown, it should not be used to make any more requests.
      • getCachedResponseMetadata

        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. This data isn't considered part of the result data returned by an operation, so it's available through this separate, diagnostic interface.

        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.

        Parameters:
        request - The originally executed request.
        Returns:
        The response metadata for the specified request, or null if none is available.
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /