update_comment
async
¶
update_comment(
comment_id: CommentId,
content: Content,
*,
config_overrides: Optional[AsyncCodeCommitClientConfig] = None,
) -> UpdateCommentOutput
Replaces the contents of a comment.
Parameters:
-
comment_id(CommentId) –The system-generated ID of the comment you want to update. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
-
content(Content) –The updated content to replace the existing content of the comment.
Raises:
-
CommentContentRequiredException–The comment is empty. You must provide some content for a comment. The content cannot be null.
-
CommentContentSizeLimitExceededException–The comment is too large. Comments are limited to 10,240 characters.
-
CommentDeletedException–This comment has already been deleted. You cannot edit or delete a deleted comment.
-
CommentDoesNotExistException–No comment exists with the provided ID. Verify that you have used the correct ID, and then try again.
-
CommentIdRequiredException–The comment ID is missing or null. A comment ID is required.
-
CommentNotCreatedByCallerException–You cannot modify or delete this comment. Only comment authors can modify or delete their comments.
-
InvalidCommentIdException–The comment ID is not in a valid format. Make sure that you have provided the full comment ID.
-
UnknownServiceError–The service returned an error code this client does not model.