| 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.UpdateComment
Description
Replaces the contents of a comment.
Synopsis
- data UpdateComment = UpdateComment' {}
 - newUpdateComment :: Text -> Text -> UpdateComment
 - updateComment_commentId :: Lens' UpdateComment Text
 - updateComment_content :: Lens' UpdateComment Text
 - data UpdateCommentResponse = UpdateCommentResponse' {
- comment :: Maybe Comment
 - httpStatus :: Int
 
 - newUpdateCommentResponse :: Int -> UpdateCommentResponse
 - updateCommentResponse_comment :: Lens' UpdateCommentResponse (Maybe Comment)
 - updateCommentResponse_httpStatus :: Lens' UpdateCommentResponse Int
 
Creating a Request
data UpdateComment Source #
See: newUpdateComment smart constructor.
Constructors
| UpdateComment' | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> UpdateComment | 
Create a value of UpdateComment 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:
UpdateComment, updateComment_commentId - The system-generated ID of the comment you want to update. To get this
 ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
UpdateComment, updateComment_content - The updated content to replace the existing content of the comment.
Request Lenses
updateComment_commentId :: Lens' UpdateComment Text Source #
The system-generated ID of the comment you want to update. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
updateComment_content :: Lens' UpdateComment Text Source #
The updated content to replace the existing content of the comment.
Destructuring the Response
data UpdateCommentResponse Source #
See: newUpdateCommentResponse smart constructor.
Constructors
| UpdateCommentResponse' | |
Fields 
  | |
Instances
newUpdateCommentResponse Source #
Create a value of UpdateCommentResponse 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:UpdateCommentResponse', updateCommentResponse_comment - Information about the updated comment.
$sel:httpStatus:UpdateCommentResponse', updateCommentResponse_httpStatus - The response's http status code.
Response Lenses
updateCommentResponse_comment :: Lens' UpdateCommentResponse (Maybe Comment) Source #
Information about the updated comment.
updateCommentResponse_httpStatus :: Lens' UpdateCommentResponse Int Source #
The response's http status code.