class Aws::CodeGuruReviewer::Types::SourceCodeType

Specifies the source code that is analyzed in a code review.

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

data as a hash:

    {
      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] commit_diff

A [ `SourceCodeType` ][1] that specifies a commit diff created by a
pull request on an associated repository.

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

@!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] branch_diff

A type of [ `SourceCodeType` ][1] that specifies a source branch
name and a destination branch name in an associated repository.

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

@!attribute [rw] s3_bucket_repository

Information about an associated repository in an S3 bucket that
includes its name and an `S3RepositoryDetails` object. The
`S3RepositoryDetails` object includes the name of an S3 bucket, an
S3 key for a source code .zip file, and an S3 key for a build
artifacts .zip file. `S3BucketRepository` is required in [
`SourceCodeType` ][1] for `S3BucketRepository` based code reviews.

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

@!attribute [rw] request_metadata

Metadata that is associated with a code review. This applies to any
type of code review supported by CodeGuru Reviewer. The
`RequestMetadaa` field captures any event metadata. For example, it
might capture metadata associated with an event trigger, such as a
push or a pull request.
@return [Types::RequestMetadata]

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

Constants

SENSITIVE