| 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.GetComment
Description
Returns the content of a comment made on a change, file, or commit in a repository.
Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.
Synopsis
- data GetComment = GetComment' {}
- newGetComment :: Text -> GetComment
- getComment_commentId :: Lens' GetComment Text
- data GetCommentResponse = GetCommentResponse' {
- comment :: Maybe Comment
- httpStatus :: Int
- newGetCommentResponse :: Int -> GetCommentResponse
- getCommentResponse_comment :: Lens' GetCommentResponse (Maybe Comment)
- getCommentResponse_httpStatus :: Lens' GetCommentResponse Int
Creating a Request
data GetComment Source #
See: newGetComment smart constructor.
Constructors
| GetComment' | |
Instances
Arguments
| :: Text | |
| -> GetComment |
Create a value of GetComment 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:
GetComment, getComment_commentId - The unique, system-generated ID of the comment. To get this ID, use
GetCommentsForComparedCommit or GetCommentsForPullRequest.
Request Lenses
getComment_commentId :: Lens' GetComment Text Source #
The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
Destructuring the Response
data GetCommentResponse Source #
See: newGetCommentResponse smart constructor.
Constructors
| GetCommentResponse' | |
Fields
| |
Instances
newGetCommentResponse Source #
Arguments
| :: Int | |
| -> GetCommentResponse |
Create a value of GetCommentResponse 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:comment:GetCommentResponse', getCommentResponse_comment - The contents of the comment.
$sel:httpStatus:GetCommentResponse', getCommentResponse_httpStatus - The response's http status code.
Response Lenses
getCommentResponse_comment :: Lens' GetCommentResponse (Maybe Comment) Source #
The contents of the comment.
getCommentResponse_httpStatus :: Lens' GetCommentResponse Int Source #
The response's http status code.