Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

put_comment_reaction

put_comment_reaction(**kwargs)

Adds or updates a reaction to a specified comment for the user whose identity is used to make the request. You can only add or update a reaction for yourself. You cannot add, modify, or delete a reaction for another user.

See also: AWS API Documentation

Request Syntax

response = client.put_comment_reaction(
    commentId='string',
    reactionValue='string'
)
Parameters
  • commentId (string) --

    [REQUIRED]

    The ID of the comment to which you want to add or update a reaction.

  • reactionValue (string) --

    [REQUIRED]

    The emoji reaction you want to add or update. To remove a reaction, provide a value of blank or null. You can also provide the value of none. For information about emoji reaction values supported in AWS CodeCommit, see the AWS CodeCommit User Guide.

Returns

None

Exceptions

  • CodeCommit.Client.exceptions.CommentDoesNotExistException
  • CodeCommit.Client.exceptions.CommentIdRequiredException
  • CodeCommit.Client.exceptions.InvalidCommentIdException
  • CodeCommit.Client.exceptions.InvalidReactionValueException
  • CodeCommit.Client.exceptions.ReactionValueRequiredException
  • CodeCommit.Client.exceptions.ReactionLimitExceededException
  • CodeCommit.Client.exceptions.CommentDeletedException