comment_reactions
Creates, updates, deletes, gets or lists a comment_reactions resource.
Overview
| Name | comment_reactions |
| Type | Resource |
| Id | aws.codecommit.comment_reactions |
Fields
The following fields are returned by SELECT queries:
- get_comment_reactions
| Name | Datatype | Description |
|---|---|---|
next_token | string | An enumeration token that can be used in a request to return the next batch of the results. |
reactions_for_comment | array | An array of reactions to the specified comment. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_comment_reactions | select | region | Returns information about reactions to a specified comment ID. Reactions from users who have been deleted will not be included in the count. | |
put_comment_reaction | replace | region, commentId, reactionValue | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_comment_reactions
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
- put_comment_reaction
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;