| Copyright | (c) 2013-2023 Brendan Hay | 
|---|---|
| License | Mozilla Public License, v. 2.0. | 
| Maintainer | Brendan Hay | 
| Stability | auto-generated | 
| Portability | non-portable (GHC extensions) | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
Amazonka.CodeCommit.PostCommentForComparedCommit
Description
Posts a comment on the comparison between two commits.
Synopsis
- data PostCommentForComparedCommit = PostCommentForComparedCommit' {}
 - newPostCommentForComparedCommit :: Text -> Text -> Text -> PostCommentForComparedCommit
 - postCommentForComparedCommit_beforeCommitId :: Lens' PostCommentForComparedCommit (Maybe Text)
 - postCommentForComparedCommit_clientRequestToken :: Lens' PostCommentForComparedCommit (Maybe Text)
 - postCommentForComparedCommit_location :: Lens' PostCommentForComparedCommit (Maybe Location)
 - postCommentForComparedCommit_repositoryName :: Lens' PostCommentForComparedCommit Text
 - postCommentForComparedCommit_afterCommitId :: Lens' PostCommentForComparedCommit Text
 - postCommentForComparedCommit_content :: Lens' PostCommentForComparedCommit Text
 - data PostCommentForComparedCommitResponse = PostCommentForComparedCommitResponse' {}
 - newPostCommentForComparedCommitResponse :: Int -> PostCommentForComparedCommitResponse
 - postCommentForComparedCommitResponse_afterBlobId :: Lens' PostCommentForComparedCommitResponse (Maybe Text)
 - postCommentForComparedCommitResponse_afterCommitId :: Lens' PostCommentForComparedCommitResponse (Maybe Text)
 - postCommentForComparedCommitResponse_beforeBlobId :: Lens' PostCommentForComparedCommitResponse (Maybe Text)
 - postCommentForComparedCommitResponse_beforeCommitId :: Lens' PostCommentForComparedCommitResponse (Maybe Text)
 - postCommentForComparedCommitResponse_comment :: Lens' PostCommentForComparedCommitResponse (Maybe Comment)
 - postCommentForComparedCommitResponse_location :: Lens' PostCommentForComparedCommitResponse (Maybe Location)
 - postCommentForComparedCommitResponse_repositoryName :: Lens' PostCommentForComparedCommitResponse (Maybe Text)
 - postCommentForComparedCommitResponse_httpStatus :: Lens' PostCommentForComparedCommitResponse Int
 
Creating a Request
data PostCommentForComparedCommit Source #
See: newPostCommentForComparedCommit smart constructor.
Constructors
| PostCommentForComparedCommit' | |
Fields 
  | |
Instances
newPostCommentForComparedCommit Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> PostCommentForComparedCommit | 
Create a value of PostCommentForComparedCommit 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:
PostCommentForComparedCommit, postCommentForComparedCommit_beforeCommitId - To establish the directionality of the comparison, the full commit ID of
 the before commit. Required for commenting on any commit unless that
 commit is the initial commit.
PostCommentForComparedCommit, postCommentForComparedCommit_clientRequestToken - A unique, client-generated idempotency token that, when provided in a
 request, ensures the request cannot be repeated with a changed
 parameter. If a request is received with the same parameters and a token
 is included, the request returns information about the initial request
 that used that token.
PostCommentForComparedCommit, postCommentForComparedCommit_location - The location of the comparison where you want to comment.
PostCommentForComparedCommit, postCommentForComparedCommit_repositoryName - The name of the repository where you want to post a comment on the
 comparison between commits.
PostCommentForComparedCommit, postCommentForComparedCommit_afterCommitId - To establish the directionality of the comparison, the full commit ID of
 the after commit.
PostCommentForComparedCommit, postCommentForComparedCommit_content - The content of the comment you want to make.
Request Lenses
postCommentForComparedCommit_beforeCommitId :: Lens' PostCommentForComparedCommit (Maybe Text) Source #
To establish the directionality of the comparison, the full commit ID of the before commit. Required for commenting on any commit unless that commit is the initial commit.
postCommentForComparedCommit_clientRequestToken :: Lens' PostCommentForComparedCommit (Maybe Text) Source #
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.
postCommentForComparedCommit_location :: Lens' PostCommentForComparedCommit (Maybe Location) Source #
The location of the comparison where you want to comment.
postCommentForComparedCommit_repositoryName :: Lens' PostCommentForComparedCommit Text Source #
The name of the repository where you want to post a comment on the comparison between commits.
postCommentForComparedCommit_afterCommitId :: Lens' PostCommentForComparedCommit Text Source #
To establish the directionality of the comparison, the full commit ID of the after commit.
postCommentForComparedCommit_content :: Lens' PostCommentForComparedCommit Text Source #
The content of the comment you want to make.
Destructuring the Response
data PostCommentForComparedCommitResponse Source #
See: newPostCommentForComparedCommitResponse smart constructor.
Constructors
| PostCommentForComparedCommitResponse' | |
Fields 
  | |
Instances
newPostCommentForComparedCommitResponse Source #
Arguments
| :: Int | |
| -> PostCommentForComparedCommitResponse | 
Create a value of PostCommentForComparedCommitResponse 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:
PostCommentForComparedCommitResponse, postCommentForComparedCommitResponse_afterBlobId - In the directionality you established, the blob ID of the after blob.
PostCommentForComparedCommit, postCommentForComparedCommitResponse_afterCommitId - In the directionality you established, the full commit ID of the after
 commit.
PostCommentForComparedCommitResponse, postCommentForComparedCommitResponse_beforeBlobId - In the directionality you established, the blob ID of the before blob.
PostCommentForComparedCommit, postCommentForComparedCommitResponse_beforeCommitId - In the directionality you established, the full commit ID of the before
 commit.
$sel:comment:PostCommentForComparedCommitResponse', postCommentForComparedCommitResponse_comment - The content of the comment you posted.
PostCommentForComparedCommit, postCommentForComparedCommitResponse_location - The location of the comment in the comparison between the two commits.
PostCommentForComparedCommit, postCommentForComparedCommitResponse_repositoryName - The name of the repository where you posted a comment on the comparison
 between commits.
$sel:httpStatus:PostCommentForComparedCommitResponse', postCommentForComparedCommitResponse_httpStatus - The response's http status code.
Response Lenses
postCommentForComparedCommitResponse_afterBlobId :: Lens' PostCommentForComparedCommitResponse (Maybe Text) Source #
In the directionality you established, the blob ID of the after blob.
postCommentForComparedCommitResponse_afterCommitId :: Lens' PostCommentForComparedCommitResponse (Maybe Text) Source #
In the directionality you established, the full commit ID of the after commit.
postCommentForComparedCommitResponse_beforeBlobId :: Lens' PostCommentForComparedCommitResponse (Maybe Text) Source #
In the directionality you established, the blob ID of the before blob.
postCommentForComparedCommitResponse_beforeCommitId :: Lens' PostCommentForComparedCommitResponse (Maybe Text) Source #
In the directionality you established, the full commit ID of the before commit.
postCommentForComparedCommitResponse_comment :: Lens' PostCommentForComparedCommitResponse (Maybe Comment) Source #
The content of the comment you posted.
postCommentForComparedCommitResponse_location :: Lens' PostCommentForComparedCommitResponse (Maybe Location) Source #
The location of the comment in the comparison between the two commits.
postCommentForComparedCommitResponse_repositoryName :: Lens' PostCommentForComparedCommitResponse (Maybe Text) Source #
The name of the repository where you posted a comment on the comparison between commits.
postCommentForComparedCommitResponse_httpStatus :: Lens' PostCommentForComparedCommitResponse Int Source #
The response's http status code.