getComment method
Returns the content of a comment made on a change, file, or commit in a repository.
May throw CommentDoesNotExistException. May throw CommentDeletedException. May throw CommentIdRequiredException. May throw InvalidCommentIdException. May throw EncryptionIntegrityChecksFailedException. May throw EncryptionKeyAccessDeniedException. May throw EncryptionKeyDisabledException. May throw EncryptionKeyNotFoundException. May throw EncryptionKeyUnavailableException.
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 {
ArgumentError.checkNotNull(commentId, 'commentId');
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);
}