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. boto3 documentation

# generate_presigned_url method definition

def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

list_code_reviews#

Lists all the code reviews that the customer has created in the past 90 days.

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

# list_code_reviews method definition

def list_code_reviews(
    self,
    *,
    Type: TypeType,  # (1)
    ProviderTypes: Sequence[ProviderTypeType] = ...,  # (2)
    States: Sequence[JobStateType] = ...,  # (3)
    RepositoryNames: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListCodeReviewsResponseTypeDef:  # (4)
    ...
  1. See TypeType
  2. See ProviderTypeType
  3. See JobStateType
  4. See ListCodeReviewsResponseTypeDef
# list_code_reviews method usage example with argument unpacking

kwargs: ListCodeReviewsRequestRequestTypeDef = {  # (1)
    "Type": ...,
}

parent.list_code_reviews(**kwargs)
  1. See ListCodeReviewsRequestRequestTypeDef

list_recommendation_feedback#

Returns a list of RecommendationFeedbackSummary objects that contain customer recommendation feedback for all CodeGuru Reviewer users.

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

# list_recommendation_feedback method definition

def list_recommendation_feedback(
    self,
    *,
    CodeReviewArn: str,
    NextToken: str = ...,
    MaxResults: int = ...,
    UserIds: Sequence[str] = ...,
    RecommendationIds: Sequence[str] = ...,
) -> ListRecommendationFeedbackResponseTypeDef:  # (1)
    ...
  1. See ListRecommendationFeedbackResponseTypeDef
# list_recommendation_feedback method usage example with argument unpacking

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

parent.list_recommendation_feedback(**kwargs)
  1. See ListRecommendationFeedbackRequestRequestTypeDef

list_recommendations#

Returns the list of all recommendations for a completed code review.

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

# list_recommendations method definition

def list_recommendations(
    self,
    *,
    CodeReviewArn: str,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListRecommendationsResponseTypeDef:  # (1)
    ...
  1. See ListRecommendationsResponseTypeDef
# list_recommendations method usage example with argument unpacking

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

parent.list_recommendations(**kwargs)
  1. See ListRecommendationsRequestRequestTypeDef

list_repository_associations#

Returns a list of RepositoryAssociationSummary objects that contain summary information about a repository association.

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

# list_repository_associations method definition

def list_repository_associations(
    self,
    *,
    ProviderTypes: Sequence[ProviderTypeType] = ...,  # (1)
    States: Sequence[RepositoryAssociationStateType] = ...,  # (2)
    Names: Sequence[str] = ...,
    Owners: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListRepositoryAssociationsResponseTypeDef:  # (3)
    ...
  1. See ProviderTypeType
  2. See RepositoryAssociationStateType
  3. See ListRepositoryAssociationsResponseTypeDef
# list_repository_associations method usage example with argument unpacking

kwargs: ListRepositoryAssociationsRequestRequestTypeDef = {  # (1)
    "ProviderTypes": ...,
}

parent.list_repository_associations(**kwargs)
  1. See ListRepositoryAssociationsRequestRequestTypeDef

list_tags_for_resource#

Returns the list of tags associated with an associated repository resource.

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

# list_tags_for_resource method definition

def list_tags_for_resource(
    self,
    *,
    resourceArn: str,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...
  1. See ListTagsForResourceResponseTypeDef
# list_tags_for_resource method usage example with argument unpacking

kwargs: ListTagsForResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
}

parent.list_tags_for_resource(**kwargs)
  1. See ListTagsForResourceRequestRequestTypeDef

put_recommendation_feedback#

Stores customer feedback for a CodeGuru Reviewer recommendation.

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

# put_recommendation_feedback method definition

def put_recommendation_feedback(
    self,
    *,
    CodeReviewArn: str,
    RecommendationId: str,
    Reactions: Sequence[ReactionType],  # (1)
) -> Dict[str, Any]:
    ...
  1. See ReactionType
# put_recommendation_feedback method usage example with argument unpacking

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

parent.put_recommendation_feedback(**kwargs)
  1. See PutRecommendationFeedbackRequestRequestTypeDef

tag_resource#

Adds one or more tags to an associated repository.

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

# tag_resource method definition

def tag_resource(
    self,
    *,
    resourceArn: str,
    Tags: Mapping[str, str],
) -> Dict[str, Any]:
    ...
# tag_resource method usage example with argument unpacking

kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "Tags": ...,
}

parent.tag_resource(**kwargs)
  1. See TagResourceRequestRequestTypeDef

untag_resource#

Removes a tag from an associated repository.

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

# untag_resource method definition

def untag_resource(
    self,
    *,
    resourceArn: str,
    TagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...
# untag_resource method usage example with argument unpacking

kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "TagKeys": ...,
}

parent.untag_resource(**kwargs)
  1. See UntagResourceRequestRequestTypeDef

get_paginator#

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

get_waiter#

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