deleteCommentContent method

Future<DeleteCommentContentOutput> deleteCommentContent({
  1. required String commentId,
})

Deletes the content of a comment made on a change, file, or commit in a repository.

May throw CommentDoesNotExistException. May throw CommentIdRequiredException. May throw InvalidCommentIdException. May throw CommentDeletedException.

Parameter commentId : The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.

Implementation

Future<DeleteCommentContentOutput> deleteCommentContent({
  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.DeleteCommentContent'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'commentId': commentId,
    },
  );

  return DeleteCommentContentOutput.fromJson(jsonResponse.body);
}