class Aws::CodeGuruReviewer::Types::RepositoryAnalysis

A code review type that analyzes all code under a specified branch in an associated repository. The associated repository is specified using its ARN when you call [ `CreateCodeReview` ][1].

[1]: docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CreateCodeReview

@note When making an API call, you may pass RepositoryAnalysis

data as a hash:

    {
      repository_head: {
        branch_name: "BranchName", # required
      },
      source_code_type: {
        commit_diff: {
          source_commit: "CommitId",
          destination_commit: "CommitId",
          merge_base_commit: "CommitId",
        },
        repository_head: {
          branch_name: "BranchName", # required
        },
        branch_diff: {
          source_branch_name: "BranchName", # required
          destination_branch_name: "BranchName", # required
        },
        s3_bucket_repository: {
          name: "Name", # required
          details: {
            bucket_name: "S3BucketName",
            code_artifacts: {
              source_code_artifacts_object_key: "SourceCodeArtifactsObjectKey", # required
              build_artifacts_object_key: "BuildArtifactsObjectKey",
            },
          },
        },
        request_metadata: {
          request_id: "RequestId",
          requester: "Requester",
          event_info: {
            name: "EventName",
            state: "EventState",
          },
          vendor_name: "GitHub", # accepts GitHub, GitLab, NativeS3
        },
      },
    }

@!attribute [rw] repository_head

A [ `SourceCodeType` ][1] that specifies the tip of a branch in an
associated repository.

[1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_SourceCodeType
@return [Types::RepositoryHeadSourceCodeType]

@!attribute [rw] source_code_type

Specifies the source code that is analyzed in a code review.
@return [Types::SourceCodeType]

@see docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RepositoryAnalysis AWS API Documentation

Constants

SENSITIVE