Skip to content

CodeReview

Source code in docs_src/capo_codeguru_reviewer/types/code_review.py
class CodeReview(TypedDict, closed=True):
    name: NotRequired["capo_codeguru_reviewer.types.name.Name"]
    """<p>The name of the code review.</p>"""
    code_review_arn: NotRequired["capo_codeguru_reviewer.types.arn.Arn"]
    """<p>The Amazon Resource Name (ARN) of the <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html">CodeReview</a> object. </p>"""
    repository_name: NotRequired["capo_codeguru_reviewer.types.name.Name"]
    """<p>The name of the repository.</p>"""
    owner: NotRequired["capo_codeguru_reviewer.types.owner.Owner"]
    """<p>The owner of the repository. For an Amazon Web Services CodeCommit repository, this is the Amazon Web Services account ID of the account that owns the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, this is the username for the account that owns the repository. For an S3 repository, it can be the username or Amazon Web Services account ID.</p>"""
    provider_type: NotRequired[
        "capo_codeguru_reviewer.types.provider_type.ProviderType"
    ]
    """<p>The type of repository that contains the reviewed code (for example, GitHub or Bitbucket).</p>"""
    state: NotRequired["capo_codeguru_reviewer.types.job_state.JobState"]
    """<p>The valid code review states are:</p> <ul> <li> <p> <code>Completed</code>: The code review is complete.</p> </li> <li> <p> <code>Pending</code>: The code review started and has not completed or failed.</p> </li> <li> <p> <code>Failed</code>: The code review failed.</p> </li> <li> <p> <code>Deleting</code>: The code review is being deleted.</p> </li> </ul>"""
    state_reason: NotRequired["capo_codeguru_reviewer.types.state_reason.StateReason"]
    """<p>The reason for the state of the code review.</p>"""
    created_time_stamp: NotRequired["capo_codeguru_reviewer.types.time_stamp.TimeStamp"]
    """<p>The time, in milliseconds since the epoch, when the code review was created.</p>"""
    last_updated_time_stamp: NotRequired[
        "capo_codeguru_reviewer.types.time_stamp.TimeStamp"
    ]
    """<p>The time, in milliseconds since the epoch, when the code review was last updated.</p>"""
    type: NotRequired["capo_codeguru_reviewer.types.type.Type"]
    """<p>The type of code review.</p>"""
    pull_request_id: NotRequired[
        "capo_codeguru_reviewer.types.pull_request_id.PullRequestId"
    ]
    """<p>The pull request ID for the code review.</p>"""
    source_code_type: NotRequired[
        "capo_codeguru_reviewer.types.source_code_type.SourceCodeType"
    ]
    """<p>The type of the source code for the code review.</p>"""
    association_arn: NotRequired[
        "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> that contains the reviewed source code. You can retrieve associated repository ARNs by calling <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html">ListRepositoryAssociations</a>.</p>"""
    metrics: NotRequired["capo_codeguru_reviewer.types.metrics.Metrics"]
    """<p>The statistics from the code review.</p>"""
    analysis_types: NotRequired[
        "capo_codeguru_reviewer.types.analysis_types.AnalysisTypes"
    ]
    """<p>The types of analysis performed during a repository analysis or a pull request review. You can specify either <code>Security</code>, <code>CodeQuality</code>, or both.</p>"""
    config_file_state: NotRequired[
        "capo_codeguru_reviewer.types.config_file_state.ConfigFileState"
    ]
    """<p>The state of the <code>aws-codeguru-reviewer.yml</code> configuration file that allows the configuration of the CodeGuru Reviewer analysis. The file either exists, doesn't exist, or exists with errors at the root directory of your repository.</p>"""

analysis_types instance-attribute

analysis_types: NotRequired[AnalysisTypes]

The types of analysis performed during a repository analysis or a pull request review. You can specify either Security, CodeQuality, or both.

association_arn instance-attribute

association_arn: NotRequired[AssociationArn]

The Amazon Resource Name (ARN) of the RepositoryAssociation that contains the reviewed source code. You can retrieve associated repository ARNs by calling ListRepositoryAssociations.

code_review_arn instance-attribute

code_review_arn: NotRequired[Arn]

The Amazon Resource Name (ARN) of the CodeReview object.

config_file_state instance-attribute

config_file_state: NotRequired[ConfigFileState]

The state of the aws-codeguru-reviewer.yml configuration file that allows the configuration of the CodeGuru Reviewer analysis. The file either exists, doesn't exist, or exists with errors at the root directory of your repository.

created_time_stamp instance-attribute

created_time_stamp: NotRequired[TimeStamp]

The time, in milliseconds since the epoch, when the code review was created.

last_updated_time_stamp instance-attribute

last_updated_time_stamp: NotRequired[TimeStamp]

The time, in milliseconds since the epoch, when the code review was last updated.

metrics instance-attribute

metrics: NotRequired[Metrics]

The statistics from the code review.

name instance-attribute

name: NotRequired[Name]

The name of the code review.

owner instance-attribute

owner: NotRequired[Owner]

The owner of the repository. For an Amazon Web Services CodeCommit repository, this is the Amazon Web Services account ID of the account that owns the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, this is the username for the account that owns the repository. For an S3 repository, it can be the username or Amazon Web Services account ID.

provider_type instance-attribute

provider_type: NotRequired[ProviderType]

The type of repository that contains the reviewed code (for example, GitHub or Bitbucket).

pull_request_id instance-attribute

pull_request_id: NotRequired[PullRequestId]

The pull request ID for the code review.

repository_name instance-attribute

repository_name: NotRequired[Name]

The name of the repository.

source_code_type instance-attribute

source_code_type: NotRequired[SourceCodeType]

The type of the source code for the code review.

state instance-attribute

state: NotRequired[JobState]

The valid code review states are:

  • Completed: The code review is complete.

  • Pending: The code review started and has not completed or failed.

  • Failed: The code review failed.

  • Deleting: The code review is being deleted.

state_reason instance-attribute

state_reason: NotRequired[StateReason]

The reason for the state of the code review.

type instance-attribute

type: NotRequired[Type]

The type of code review.