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 |
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.
Synopsis
- data PutCommentReaction = PutCommentReaction' {
- commentId :: Text
- reactionValue :: Text
- newPutCommentReaction :: Text -> Text -> PutCommentReaction
- putCommentReaction_commentId :: Lens' PutCommentReaction Text
- putCommentReaction_reactionValue :: Lens' PutCommentReaction Text
- data PutCommentReactionResponse = PutCommentReactionResponse' {
- newPutCommentReactionResponse :: PutCommentReactionResponse
Creating a Request
data PutCommentReaction Source #
See: newPutCommentReaction
smart constructor.
PutCommentReaction' | |
|
Instances
newPutCommentReaction Source #
:: Text | |
-> Text | |
-> PutCommentReaction |
Create a value of PutCommentReaction
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:commentId:PutCommentReaction'
, putCommentReaction_commentId
- The ID of the comment to which you want to add or update a reaction.
$sel:reactionValue:PutCommentReaction'
, putCommentReaction_reactionValue
- 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 AWS
CodeCommit, see the
AWS CodeCommit User Guide.
Request Lenses
putCommentReaction_commentId :: Lens' PutCommentReaction Text Source #
The ID of the comment to which you want to add or update a reaction.
putCommentReaction_reactionValue :: Lens' PutCommentReaction Text Source #
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 AWS CodeCommit, see the AWS CodeCommit User Guide.
Destructuring the Response
data PutCommentReactionResponse Source #
See: newPutCommentReactionResponse
smart constructor.
Instances
newPutCommentReactionResponse :: PutCommentReactionResponse Source #
Create a value of PutCommentReactionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.