Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data CreateCodeReview = CreateCodeReview' {}
- newCreateCodeReview :: Text -> Text -> CodeReviewType -> CreateCodeReview
- createCodeReview_clientRequestToken :: Lens' CreateCodeReview (Maybe Text)
- createCodeReview_name :: Lens' CreateCodeReview Text
- createCodeReview_repositoryAssociationArn :: Lens' CreateCodeReview Text
- createCodeReview_type :: Lens' CreateCodeReview CodeReviewType
- data CreateCodeReviewResponse = CreateCodeReviewResponse' {}
- newCreateCodeReviewResponse :: Int -> CreateCodeReviewResponse
- createCodeReviewResponse_codeReview :: Lens' CreateCodeReviewResponse (Maybe CodeReview)
- createCodeReviewResponse_httpStatus :: Lens' CreateCodeReviewResponse Int
Creating a Request
data CreateCodeReview Source #
See: newCreateCodeReview
smart constructor.
CreateCodeReview' | |
|
Instances
:: Text | |
-> Text | |
-> CodeReviewType | |
-> CreateCodeReview |
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.
CreateCodeReviewResponse' | |
|
Instances
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
createCodeReviewResponse_codeReview :: Lens' CreateCodeReviewResponse (Maybe CodeReview) Source #
Undocumented member.
createCodeReviewResponse_httpStatus :: Lens' CreateCodeReviewResponse Int Source #
The response's http status code.