amazonka-codeguru-reviewer-2.0: Amazon CodeGuru Reviewer SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON CreateCodeReview Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.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

AWSRequest CreateCodeReview Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

Associated Types

type AWSResponse CreateCodeReview #

Generic CreateCodeReview Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

Associated Types

type Rep CreateCodeReview :: Type -> Type #

Read CreateCodeReview Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

Show CreateCodeReview Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

NFData CreateCodeReview Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

Methods

rnf :: CreateCodeReview -> () #

Eq CreateCodeReview Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

Hashable CreateCodeReview Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

type AWSResponse 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" "amazonka-codeguru-reviewer-2.0-5PMDLaQhmT9HEhVpSUty9z" '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))))

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.

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.

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
Generic CreateCodeReviewResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

Associated Types

type Rep CreateCodeReviewResponse :: Type -> Type #

Read CreateCodeReviewResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

Show CreateCodeReviewResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

NFData CreateCodeReviewResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.CreateCodeReview

Eq 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" "amazonka-codeguru-reviewer-2.0-5PMDLaQhmT9HEhVpSUty9z" '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