CodeGuruReviewerClient#
Index > CodeGuruReviewer > CodeGuruReviewerClient
Auto-generated documentation for CodeGuruReviewer type annotations stubs module types-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 types_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 types_boto3_codeguru_reviewer.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...Methods#
can_paginate#
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:
    ...generate_presigned_url#
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:
    ...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)
    ...# associate_repository method usage example with argument unpacking
kwargs: AssociateRepositoryRequestTypeDef = {  # (1)
    "Repository": ...,
}
parent.associate_repository(**kwargs)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)
    ...# create_code_review method usage example with argument unpacking
kwargs: CreateCodeReviewRequestTypeDef = {  # (1)
    "Name": ...,
    "RepositoryAssociationArn": ...,
    "Type": ...,
}
parent.create_code_review(**kwargs)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)
    ...# describe_code_review method usage example with argument unpacking
kwargs: DescribeCodeReviewRequestTypeDef = {  # (1)
    "CodeReviewArn": ...,
}
parent.describe_code_review(**kwargs)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)
    ...# describe_recommendation_feedback method usage example with argument unpacking
kwargs: DescribeRecommendationFeedbackRequestTypeDef = {  # (1)
    "CodeReviewArn": ...,
    "RecommendationId": ...,
}
parent.describe_recommendation_feedback(**kwargs)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)
    ...# describe_repository_association method usage example with argument unpacking
kwargs: DescribeRepositoryAssociationRequestTypeDef = {  # (1)
    "AssociationArn": ...,
}
parent.describe_repository_association(**kwargs)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)
    ...# disassociate_repository method usage example with argument unpacking
kwargs: DisassociateRepositoryRequestTypeDef = {  # (1)
    "AssociationArn": ...,
}
parent.disassociate_repository(**kwargs)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)
    ...- See TypeType
- See Sequence[ProviderTypeType]
- See Sequence[JobStateType]
- See ListCodeReviewsResponseTypeDef
# list_code_reviews method usage example with argument unpacking
kwargs: ListCodeReviewsRequestTypeDef = {  # (1)
    "Type": ...,
}
parent.list_code_reviews(**kwargs)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)
    ...# list_recommendation_feedback method usage example with argument unpacking
kwargs: ListRecommendationFeedbackRequestTypeDef = {  # (1)
    "CodeReviewArn": ...,
}
parent.list_recommendation_feedback(**kwargs)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)
    ...# list_recommendations method usage example with argument unpacking
kwargs: ListRecommendationsRequestTypeDef = {  # (1)
    "CodeReviewArn": ...,
}
parent.list_recommendations(**kwargs)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)
    ...- See Sequence[ProviderTypeType]
- See Sequence[RepositoryAssociationStateType]
- See ListRepositoryAssociationsResponseTypeDef
# list_repository_associations method usage example with argument unpacking
kwargs: ListRepositoryAssociationsRequestTypeDef = {  # (1)
    "ProviderTypes": ...,
}
parent.list_repository_associations(**kwargs)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)
    ...# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceRequestTypeDef = {  # (1)
    "resourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)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]:
    ...- See Sequence[ReactionType]
# put_recommendation_feedback method usage example with argument unpacking
kwargs: PutRecommendationFeedbackRequestTypeDef = {  # (1)
    "CodeReviewArn": ...,
    "RecommendationId": ...,
    "Reactions": ...,
}
parent.put_recommendation_feedback(**kwargs)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: TagResourceRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "Tags": ...,
}
parent.tag_resource(**kwargs)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: UntagResourceRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "TagKeys": ...,
}
parent.untag_resource(**kwargs)get_paginator#
Type annotations and code completion for boto3.client("codeguru-reviewer").get_paginator method with overloads.
- client.get_paginator("list_repository_associations")-> ListRepositoryAssociationsPaginator
get_waiter#
Type annotations and code completion for boto3.client("codeguru-reviewer").get_waiter method with overloads.
- client.get_waiter("code_review_completed")-> CodeReviewCompletedWaiter
- client.get_waiter("repository_association_succeeded")-> RepositoryAssociationSucceededWaiter