Skip to content

CodeGuruReviewerClient#

Index > CodeGuruReviewer > CodeGuruReviewerClient

Auto-generated documentation for CodeGuruReviewer type annotations stubs module mypy-boto3-codeguru-reviewer.

CodeGuruReviewerClient#

Type annotations and code completion for boto3.client("codeguru-reviewer"). boto3 documentation

# CodeGuruReviewerClient usage example

from boto3.session import Session
from mypy_boto3_codeguru_reviewer.client import CodeGuruReviewerClient

def get_codeguru-reviewer_client() -> CodeGuruReviewerClient:
    return Session().client("codeguru-reviewer")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("codeguru-reviewer").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("codeguru-reviewer")

try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.ClientError,
    client.exceptions.ConflictException,
    client.exceptions.InternalServerException,
    client.exceptions.NotFoundException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ThrottlingException,
    client.exceptions.ValidationException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_codeguru_reviewer.client import Exceptions

def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...

Methods#

associate_repository#

Use to associate an Amazon Web Services CodeCommit repository or a repository managed by Amazon Web Services CodeStar Connections with Amazon CodeGuru Reviewer.

Type annotations and code completion for boto3.client("codeguru-reviewer").associate_repository method. boto3 documentation

# associate_repository method definition

def associate_repository(
    self,
    *,
    Repository: RepositoryTypeDef,  # (1)
    ClientRequestToken: str = ...,
    Tags: Mapping[str, str] = ...,
    KMSKeyDetails: KMSKeyDetailsTypeDef = ...,  # (2)
) -> AssociateRepositoryResponseTypeDef:  # (3)
    ...
  1. See RepositoryTypeDef
  2. See KMSKeyDetailsTypeDef
  3. See AssociateRepositoryResponseTypeDef
# associate_repository method usage example with argument unpacking

kwargs: AssociateRepositoryRequestRequestTypeDef = {  # (1)
    "Repository": ...,
}

parent.associate_repository(**kwargs)
  1. See AssociateRepositoryRequestRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("codeguru-reviewer").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close#

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("codeguru-reviewer").close method. boto3 documentation

# close method definition

def close(
    self,
) -> None:
    ...

create_code_review#

Use to create a code review with a CodeReviewType of RepositoryAnalysis.

Type annotations and code completion for boto3.client("codeguru-reviewer").create_code_review method. boto3 documentation

# create_code_review method definition

def create_code_review(
    self,
    *,
    Name: str,
    RepositoryAssociationArn: str,
    Type: CodeReviewTypeTypeDef,  # (1)
    ClientRequestToken: str = ...,
) -> CreateCodeReviewResponseTypeDef:  # (2)
    ...
  1. See CodeReviewTypeTypeDef
  2. See CreateCodeReviewResponseTypeDef
# create_code_review method usage example with argument unpacking

kwargs: CreateCodeReviewRequestRequestTypeDef = {  # (1)
    "Name": ...,
    "RepositoryAssociationArn": ...,
    "Type": ...,
}

parent.create_code_review(**kwargs)
  1. See CreateCodeReviewRequestRequestTypeDef

describe_code_review#

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

Type annotations and code completion for boto3.client("codeguru-reviewer").describe_code_review method. boto3 documentation

# describe_code_review method definition

def describe_code_review(
    self,
    *,
    CodeReviewArn: str,
) -> DescribeCodeReviewResponseTypeDef:  # (1)
    ...
  1. See DescribeCodeReviewResponseTypeDef
# describe_code_review method usage example with argument unpacking

kwargs: DescribeCodeReviewRequestRequestTypeDef = {  # (1)
    "CodeReviewArn": ...,
}

parent.describe_code_review(**kwargs)
  1. See DescribeCodeReviewRequestRequestTypeDef

describe_recommendation_feedback#

Describes the customer feedback for a CodeGuru Reviewer recommendation.

Type annotations and code completion for boto3.client("codeguru-reviewer").describe_recommendation_feedback method. boto3 documentation

# describe_recommendation_feedback method definition

def describe_recommendation_feedback(
    self,
    *,
    CodeReviewArn: str,
    RecommendationId: str,
    UserId: str = ...,
) -> DescribeRecommendationFeedbackResponseTypeDef:  # (1)
    ...
  1. See DescribeRecommendationFeedbackResponseTypeDef
# describe_recommendation_feedback method usage example with argument unpacking

kwargs: DescribeRecommendationFeedbackRequestRequestTypeDef = {  # (1)
    "CodeReviewArn": ...,
    "RecommendationId": ...,
}

parent.describe_recommendation_feedback(**kwargs)
  1. See DescribeRecommendationFeedbackRequestRequestTypeDef

describe_repository_association#

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

Type annotations and code completion for boto3.client("codeguru-reviewer").describe_repository_association method. boto3 documentation

# describe_repository_association method definition

def describe_repository_association(
    self,
    *,
    AssociationArn: str,
) -> DescribeRepositoryAssociationResponseTypeDef:  # (1)
    ...
  1. See DescribeRepositoryAssociationResponseTypeDef
# describe_repository_association method usage example with argument unpacking

kwargs: DescribeRepositoryAssociationRequestRequestTypeDef = {  # (1)
    "AssociationArn": ...,
}

parent.describe_repository_association(**kwargs)
  1. See DescribeRepositoryAssociationRequestRequestTypeDef

disassociate_repository#

Removes the association between Amazon CodeGuru Reviewer and a repository.

Type annotations and code completion for boto3.client("codeguru-reviewer").disassociate_repository method. boto3 documentation

# disassociate_repository method definition

def disassociate_repository(
    self,
    *,
    AssociationArn: str,
) -> DisassociateRepositoryResponseTypeDef:  # (1)
    ...
  1. See DisassociateRepositoryResponseTypeDef
# disassociate_repository method usage example with argument unpacking

kwargs: DisassociateRepositoryRequestRequestTypeDef = {  # (1)
    "AssociationArn": ...,
}

parent.disassociate_repository(**kwargs)
  1. See DisassociateRepositoryRequestRequestTypeDef

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for boto3.client("codeguru-reviewer").generate_presigned_url method.