updateComment method
Replaces the contents of a comment.
May throw CommentContentRequiredException.
May throw CommentContentSizeLimitExceededException.
May throw CommentDeletedException.
May throw CommentDoesNotExistException.
May throw CommentIdRequiredException.
May throw CommentNotCreatedByCallerException.
May throw InvalidCommentIdException.
Parameter commentId :
The system-generated ID of the comment you want to update. To get this ID,
use GetCommentsForComparedCommit or
GetCommentsForPullRequest.
Parameter content :
The updated content to replace the existing content of the comment.
Implementation
Future<UpdateCommentOutput> updateComment({
required String commentId,
required String content,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeCommit_20150413.UpdateComment'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'commentId': commentId,
'content': content,
},
);
return UpdateCommentOutput.fromJson(jsonResponse.body);
}