amazonka-codecommit-2.0: Amazon CodeCommit SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CodeCommit.PutCommentReaction

Description

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

Creating a Request

data PutCommentReaction Source #

See: newPutCommentReaction smart constructor.

Constructors

PutCommentReaction' 

Fields

  • commentId :: Text

    The ID of the comment to which you want to add or update a reaction.

  • reactionValue :: Text

    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.

Instances

Instances details
ToJSON PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

ToHeaders PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

ToPath PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

ToQuery PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

AWSRequest PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

Associated Types

type AWSResponse PutCommentReaction #

Generic PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

Associated Types

type Rep PutCommentReaction :: Type -> Type #

Read PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

Show PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

NFData PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

Methods

rnf :: PutCommentReaction -> () #

Eq PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

Hashable PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

type AWSResponse PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

type Rep PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

type Rep PutCommentReaction = D1 ('MetaData "PutCommentReaction" "Amazonka.CodeCommit.PutCommentReaction" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" 'False) (C1 ('MetaCons "PutCommentReaction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "commentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "reactionValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newPutCommentReaction Source #

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:

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

Instances details
Generic PutCommentReactionResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

Associated Types

type Rep PutCommentReactionResponse :: Type -> Type #

Read PutCommentReactionResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

Show PutCommentReactionResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

NFData PutCommentReactionResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

Eq PutCommentReactionResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

type Rep PutCommentReactionResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

type Rep PutCommentReactionResponse = D1 ('MetaData "PutCommentReactionResponse" "Amazonka.CodeCommit.PutCommentReaction" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" 'False) (C1 ('MetaCons "PutCommentReactionResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newPutCommentReactionResponse :: PutCommentReactionResponse Source #

Create a value of PutCommentReactionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.