libZSservicesZSamazonka-codeguru-reviewerZSamazonka-codeguru-reviewer
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CodeGuruReviewer.Types.SourceCodeType

Description

 
Synopsis

Documentation

data SourceCodeType Source #

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

See: newSourceCodeType smart constructor.

Constructors

SourceCodeType' 

Fields

Instances

Instances details
Eq SourceCodeType Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.SourceCodeType

Read SourceCodeType Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.SourceCodeType

Show SourceCodeType Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.SourceCodeType

Generic SourceCodeType Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.SourceCodeType

Associated Types

type Rep SourceCodeType :: Type -> Type #

NFData SourceCodeType Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.SourceCodeType

Methods

rnf :: SourceCodeType -> () #

Hashable SourceCodeType Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.SourceCodeType

ToJSON SourceCodeType Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.SourceCodeType

FromJSON SourceCodeType Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.SourceCodeType

type Rep SourceCodeType Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.SourceCodeType

type Rep SourceCodeType = D1 ('MetaData "SourceCodeType" "Amazonka.CodeGuruReviewer.Types.SourceCodeType" "libZSservicesZSamazonka-codeguru-reviewerZSamazonka-codeguru-reviewer" 'False) (C1 ('MetaCons "SourceCodeType'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "s3BucketRepository") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe S3BucketRepository)) :*: S1 ('MetaSel ('Just "requestMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RequestMetadata))) :*: (S1 ('MetaSel ('Just "repositoryHead") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RepositoryHeadSourceCodeType)) :*: (S1 ('MetaSel ('Just "commitDiff") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CommitDiffSourceCodeType)) :*: S1 ('MetaSel ('Just "branchDiff") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BranchDiffSourceCodeType))))))

newSourceCodeType :: SourceCodeType Source #

Create a value of SourceCodeType with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:s3BucketRepository:SourceCodeType', sourceCodeType_s3BucketRepository - 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 for S3BucketRepository based code reviews.

$sel:requestMetadata:SourceCodeType', sourceCodeType_requestMetadata - 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.

$sel:repositoryHead:SourceCodeType', sourceCodeType_repositoryHead - Undocumented member.

$sel:commitDiff:SourceCodeType', sourceCodeType_commitDiff - A SourceCodeType that specifies a commit diff created by a pull request on an associated repository.

$sel:branchDiff:SourceCodeType', sourceCodeType_branchDiff - A type of SourceCodeType that specifies a source branch name and a destination branch name in an associated repository.

sourceCodeType_s3BucketRepository :: Lens' SourceCodeType (Maybe S3BucketRepository) Source #

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 for S3BucketRepository based code reviews.

sourceCodeType_requestMetadata :: Lens' SourceCodeType (Maybe RequestMetadata) Source #

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.

sourceCodeType_commitDiff :: Lens' SourceCodeType (Maybe CommitDiffSourceCodeType) Source #

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

sourceCodeType_branchDiff :: Lens' SourceCodeType (Maybe BranchDiffSourceCodeType) Source #

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