Skip to main content

comment_reactions

Creates, updates, deletes, gets or lists a comment_reactions resource.

Overview

Namecomment_reactions
TypeResource
Idaws.codecommit.comment_reactions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
next_tokenstringAn enumeration token that can be used in a request to return the next batch of the results.
reactions_for_commentarrayAn array of reactions to the specified comment.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_comment_reactionsselectregionReturns information about reactions to a specified comment ID. Reactions from users who have been deleted will not be included in the count.
put_comment_reactionreplaceregion, commentId, reactionValueAdds 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about reactions to a specified comment ID. Reactions from users who have been deleted will not be included in the count.

SELECT
next_token,
reactions_for_comment
FROM aws.codecommit.comment_reactions
WHERE region = '{{ region }}' -- required
;

REPLACE examples

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.

REPLACE aws.codecommit.comment_reactions
SET
commentId = '{{ commentId }}',
reactionValue = '{{ reactionValue }}'
WHERE
region = '{{ region }}' --required
AND commentId = '{{ commentId }}' --required
AND reactionValue = '{{ reactionValue }}' --required;