:doc:`CodeCommit <../../codecommit>` / Client / put_comment_reaction

********************
put_comment_reaction
********************



.. py:method:: CodeCommit.Client.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 <https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutCommentReaction>`_  


  **Request Syntax**
  ::

    response = client.put_comment_reaction(
        commentId='string',
        reactionValue='string'
    )
    
  :type commentId: string
  :param commentId: **[REQUIRED]** 

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

    

  
  :type reactionValue: string
  :param reactionValue: **[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 CodeCommit, see the `CodeCommit User Guide <https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-commit-comment.html#emoji-reaction-table>`__.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`CodeCommit.Client.exceptions.CommentDoesNotExistException`

  
  *   :py:class:`CodeCommit.Client.exceptions.CommentIdRequiredException`

  
  *   :py:class:`CodeCommit.Client.exceptions.InvalidCommentIdException`

  
  *   :py:class:`CodeCommit.Client.exceptions.InvalidReactionValueException`

  
  *   :py:class:`CodeCommit.Client.exceptions.ReactionValueRequiredException`

  
  *   :py:class:`CodeCommit.Client.exceptions.ReactionLimitExceededException`

  
  *   :py:class:`CodeCommit.Client.exceptions.CommentDeletedException`

  