getComment method
Returns the content of a comment made on a change, file, or commit in a repository.
May throw CommentDeletedException.
May throw CommentDoesNotExistException.
May throw CommentIdRequiredException.
May throw EncryptionIntegrityChecksFailedException.
May throw EncryptionKeyAccessDeniedException.
May throw EncryptionKeyDisabledException.
May throw EncryptionKeyNotFoundException.
May throw EncryptionKeyUnavailableException.
May throw InvalidCommentIdException.
Parameter commentId :
The unique, system-generated ID of the comment. To get this ID, use
GetCommentsForComparedCommit or GetCommentsForPullRequest.
Implementation
Future<GetCommentOutput> getComment({
required String commentId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeCommit_20150413.GetComment'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'commentId': commentId,
},
);
return GetCommentOutput.fromJson(jsonResponse.body);
}