| 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.UpdateComment
Description
Replaces the contents of a comment.
Synopsis
- updateComment :: Text -> Text -> UpdateComment
- data UpdateComment
- ucCommentId :: Lens' UpdateComment Text
- ucContent :: Lens' UpdateComment Text
- updateCommentResponse :: Int -> UpdateCommentResponse
- data UpdateCommentResponse
- ucrsComment :: Lens' UpdateCommentResponse (Maybe Comment)
- ucrsResponseStatus :: Lens' UpdateCommentResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> UpdateComment |
Creates a value of UpdateComment with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ucCommentId- The system-generated ID of the comment you want to update. To get this ID, useGetCommentsForComparedCommitorGetCommentsForPullRequest.ucContent- The updated content with which you want to replace the existing content of the comment.
data UpdateComment Source #
See: updateComment smart constructor.
Instances
Request Lenses
ucCommentId :: Lens' UpdateComment Text Source #
The system-generated ID of the comment you want to update. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest .
ucContent :: Lens' UpdateComment Text Source #
The updated content with which you want to replace the existing content of the comment.
Destructuring the Response
updateCommentResponse Source #
Arguments
| :: Int | |
| -> UpdateCommentResponse |
Creates a value of UpdateCommentResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ucrsComment- Information about the updated comment.ucrsResponseStatus- -- | The response status code.
data UpdateCommentResponse Source #
See: updateCommentResponse smart constructor.
Instances
Response Lenses
ucrsComment :: Lens' UpdateCommentResponse (Maybe Comment) Source #
Information about the updated comment.
ucrsResponseStatus :: Lens' UpdateCommentResponse Int Source #
- - | The response status code.