| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.CodeCommit.GetComment
Description
Returns the content of a comment made on a change, file, or commit in a repository.
Synopsis
Creating a Request
Arguments
| :: Text | |
| -> GetComment |
Creates a value of GetComment with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gcCommentId- The unique, system-generated ID of the comment. To get this ID, useGetCommentsForComparedCommitorGetCommentsForPullRequest.
data GetComment Source #
See: getComment smart constructor.
Instances
Request Lenses
gcCommentId :: Lens' GetComment Text Source #
The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest .
Destructuring the Response
Arguments
| :: Int | |
| -> GetCommentResponse |
Creates a value of GetCommentResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
getrsComment- The contents of the comment.getrsResponseStatus- -- | The response status code.
data GetCommentResponse Source #
See: getCommentResponse smart constructor.
Instances
Response Lenses
getrsComment :: Lens' GetCommentResponse (Maybe Comment) Source #
The contents of the comment.
getrsResponseStatus :: Lens' GetCommentResponse Int Source #
- - | The response status code.