Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns information about reactions to a specified comment ID. Reactions from users who have been deleted will not be included in the count.
Synopsis
- data GetCommentReactions = GetCommentReactions' {}
- newGetCommentReactions :: Text -> GetCommentReactions
- getCommentReactions_nextToken :: Lens' GetCommentReactions (Maybe Text)
- getCommentReactions_reactionUserArn :: Lens' GetCommentReactions (Maybe Text)
- getCommentReactions_maxResults :: Lens' GetCommentReactions (Maybe Int)
- getCommentReactions_commentId :: Lens' GetCommentReactions Text
- data GetCommentReactionsResponse = GetCommentReactionsResponse' {}
- newGetCommentReactionsResponse :: Int -> GetCommentReactionsResponse
- getCommentReactionsResponse_nextToken :: Lens' GetCommentReactionsResponse (Maybe Text)
- getCommentReactionsResponse_httpStatus :: Lens' GetCommentReactionsResponse Int
- getCommentReactionsResponse_reactionsForComment :: Lens' GetCommentReactionsResponse [ReactionForComment]
Creating a Request
data GetCommentReactions Source #
See: newGetCommentReactions
smart constructor.
GetCommentReactions' | |
|
Instances
newGetCommentReactions Source #
Create a value of GetCommentReactions
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:GetCommentReactions'
, getCommentReactions_nextToken
- An enumeration token that, when provided in a request, returns the next
batch of the results.
$sel:reactionUserArn:GetCommentReactions'
, getCommentReactions_reactionUserArn
- Optional. The Amazon Resource Name (ARN) of the user or identity for
which you want to get reaction information.
$sel:maxResults:GetCommentReactions'
, getCommentReactions_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.
$sel:commentId:GetCommentReactions'
, getCommentReactions_commentId
- The ID of the comment for which you want to get reactions information.
Request Lenses
getCommentReactions_nextToken :: Lens' GetCommentReactions (Maybe Text) Source #
An enumeration token that, when provided in a request, returns the next batch of the results.
getCommentReactions_reactionUserArn :: Lens' GetCommentReactions (Maybe Text) Source #
Optional. The Amazon Resource Name (ARN) of the user or identity for which you want to get reaction information.
getCommentReactions_maxResults :: Lens' GetCommentReactions (Maybe Int) Source #
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.
getCommentReactions_commentId :: Lens' GetCommentReactions Text Source #
The ID of the comment for which you want to get reactions information.
Destructuring the Response
data GetCommentReactionsResponse Source #
See: newGetCommentReactionsResponse
smart constructor.
GetCommentReactionsResponse' | |
|
Instances
newGetCommentReactionsResponse Source #
Create a value of GetCommentReactionsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:GetCommentReactions'
, getCommentReactionsResponse_nextToken
- An enumeration token that can be used in a request to return the next
batch of the results.
$sel:httpStatus:GetCommentReactionsResponse'
, getCommentReactionsResponse_httpStatus
- The response's http status code.
$sel:reactionsForComment:GetCommentReactionsResponse'
, getCommentReactionsResponse_reactionsForComment
- An array of reactions to the specified comment.
Response Lenses
getCommentReactionsResponse_nextToken :: Lens' GetCommentReactionsResponse (Maybe Text) Source #
An enumeration token that can be used in a request to return the next batch of the results.
getCommentReactionsResponse_httpStatus :: Lens' GetCommentReactionsResponse Int Source #
The response's http status code.
getCommentReactionsResponse_reactionsForComment :: Lens' GetCommentReactionsResponse [ReactionForComment] Source #
An array of reactions to the specified comment.