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)
...
# associate_repository method usage example with argument unpacking
kwargs: AssociateRepositoryRequestRequestTypeDef = { # (1)
"Repository": ...,
}
parent.associate_repository(**kwargs)
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)
...
# create_code_review method usage example with argument unpacking
kwargs: CreateCodeReviewRequestRequestTypeDef = { # (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: DescribeCodeReviewRequestRequestTypeDef = { # (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: DescribeRecommendationFeedbackRequestRequestTypeDef = { # (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: DescribeRepositoryAssociationRequestRequestTypeDef = { # (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: DisassociateRepositoryRequestRequestTypeDef = { # (1)
"AssociationArn": ...,
}
parent.disassociate_repository(**kwargs)
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.