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.CreateCodeReview

Description

Use to create a code review with a CodeReviewType of RepositoryAnalysis. This type of code review analyzes all code under a specified branch in an associated repository. PullRequest code reviews are automatically triggered by a pull request.

Synopsis

Creating a Request

data CreateCodeReview Source #

See: newCreateCodeReview smart constructor.

Constructors

CreateCodeReview' 

Fields

  • clientRequestToken :: Maybe Text

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

  • name :: Text

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

  • repositoryAssociationArn :: Text

    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' :: CodeReviewType

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

Instances

Instances details
Eq CreateCodeReview Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

Read CreateCodeReview Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

Show CreateCodeReview Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

Generic CreateCodeReview Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

Associated Types

type Rep CreateCodeReview :: Type -> Type #

NFData CreateCodeReview Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

Methods

rnf :: CreateCodeReview -> () #

Hashable CreateCodeReview Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

ToJSON CreateCodeReview Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

AWSRequest CreateCodeReview Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

Associated Types

type AWSResponse CreateCodeReview #

ToHeaders CreateCodeReview Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

ToPath CreateCodeReview Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

ToQuery CreateCodeReview Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

type Rep CreateCodeReview Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

type Rep CreateCodeReview = D1 ('MetaData "CreateCodeReview" "Amazonka.CodeGuruReviewer.CreateCodeReview" "libZSservicesZSamazonka-codeguru-reviewerZSamazonka-codeguru-reviewer" 'False) (C1 ('MetaCons "CreateCodeReview'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "repositoryAssociationArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CodeReviewType))))
type AWSResponse CreateCodeReview Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

newCreateCodeReview Source #

Create a value of CreateCodeReview 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:clientRequestToken:CreateCodeReview', createCodeReview_clientRequestToken - Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate code reviews if there are failures and retries.

$sel:name:CreateCodeReview', createCodeReview_name - The name of the code review. The name of each code review in your Amazon Web Services account must be unique.

$sel:repositoryAssociationArn:CreateCodeReview', createCodeReview_repositoryAssociationArn - 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.

$sel:type':CreateCodeReview', createCodeReview_type - The type of code review to create. This is specified using a CodeReviewType object. You can create a code review only of type RepositoryAnalysis.

Request Lenses

createCodeReview_clientRequestToken :: Lens' CreateCodeReview (Maybe Text) Source #

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

createCodeReview_name :: Lens' CreateCodeReview Text Source #

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

createCodeReview_repositoryAssociationArn :: Lens' CreateCodeReview Text Source #

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.

createCodeReview_type :: Lens' CreateCodeReview CodeReviewType Source #

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

Destructuring the Response

data CreateCodeReviewResponse Source #

See: newCreateCodeReviewResponse smart constructor.

Constructors

CreateCodeReviewResponse' 

Fields

Instances

Instances details
Eq CreateCodeReviewResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

Read CreateCodeReviewResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

Show CreateCodeReviewResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

Generic CreateCodeReviewResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

Associated Types

type Rep CreateCodeReviewResponse :: Type -> Type #

NFData CreateCodeReviewResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

type Rep CreateCodeReviewResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

type Rep CreateCodeReviewResponse = D1 ('MetaData "CreateCodeReviewResponse" "Amazonka.CodeGuruReviewer.CreateCodeReview" "libZSservicesZSamazonka-codeguru-reviewerZSamazonka-codeguru-reviewer" 'False) (C1 ('MetaCons "CreateCodeReviewResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "codeReview") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CodeReview)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateCodeReviewResponse Source #

Create a value of CreateCodeReviewResponse 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:codeReview:CreateCodeReviewResponse', createCodeReviewResponse_codeReview - Undocumented member.

$sel:httpStatus:CreateCodeReviewResponse', createCodeReviewResponse_httpStatus - The response's http status code.

Response Lenses