Skip to content

Returns information about reactions to a specified comment ID

Description

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

Usage

codecommit_get_comment_reactions(commentId, reactionUserArn, nextToken,
  maxResults)

Arguments

  • commentId

    [required] The ID of the comment for which you want to get reactions information.

  • reactionUserArn

    Optional. The Amazon Resource Name (ARN) of the user or identity for which you want to get reaction information.

  • nextToken

    An enumeration token that, when provided in a request, returns the next batch of the results.

  • maxResults

    A non-zero, non-negative integer used to limit the number of returned results. The default is the same as the allowed maximum, 1,000.

Value

A list with the following syntax:

list(
  reactionsForComment = list(
    list(
      reaction = list(
        emoji = "string",
        shortCode = "string",
        unicode = "string"
      ),
      reactionUsers = list(
        "string"
      ),
      reactionsFromDeletedUsersCount = 123
    )
  ),
  nextToken = "string"
)

Request syntax

svc$get_comment_reactions(
  commentId = "string",
  reactionUserArn = "string",
  nextToken = "string",
  maxResults = 123
)