Skip to content

CreateCodeReviewRequest

Source code in docs_src/capo_codeguru_reviewer/types/create_code_review_request.py
class CreateCodeReviewRequest(TypedDict, closed=True):
    name: "capo_codeguru_reviewer.types.code_review_name.CodeReviewName"
    """<p>The name of the code review. The name of each code review in your Amazon Web Services account must be unique.</p>"""
    repository_association_arn: (
        "capo_codeguru_reviewer.types.association_arn.AssociationArn"
    )
    """<p>The Amazon Resource Name (ARN) of the <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">RepositoryAssociation</a> object. You can retrieve this ARN by calling <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html">ListRepositoryAssociations</a>.</p> <p>A code review can only be created on an associated repository. This is the ARN of the associated repository.</p>"""
    type: "capo_codeguru_reviewer.types.code_review_type.CodeReviewType"
    """<p>The type of code review to create. This is specified using a <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReviewType.html">CodeReviewType</a> object. You can create a code review only of type <code>RepositoryAnalysis</code>.</p>"""
    client_request_token: NotRequired[
        "capo_codeguru_reviewer.types.client_request_token.ClientRequestToken"
    ]
    """<p>Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate code reviews if there are failures and retries.</p>"""

client_request_token instance-attribute

client_request_token: NotRequired[ClientRequestToken]

Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate code reviews if there are failures and retries.

name instance-attribute

The name of the code review. The name of each code review in your Amazon Web Services account must be unique.

repository_association_arn instance-attribute

repository_association_arn: AssociationArn

The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositoryAssociations.

A code review can only be created on an associated repository. This is the ARN of the associated repository.

type instance-attribute

The type of code review to create. This is specified using a CodeReviewType object. You can create a code review only of type RepositoryAnalysis.