libZSservicesZSamazonka-codecommitZSamazonka-codecommit
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

Read PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

Show PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

Generic PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

Associated Types

type Rep PutCommentReaction :: Type -> Type #

NFData PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

Methods

rnf :: PutCommentReaction -> () #

Hashable PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

ToJSON PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

AWSRequest PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

Associated Types

type AWSResponse 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

type Rep PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

type Rep PutCommentReaction = D1 ('MetaData "PutCommentReaction" "Amazonka.CodeCommit.PutCommentReaction" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "PutCommentReaction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "commentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "reactionValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse PutCommentReaction Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

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:

$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

Instances details
Eq PutCommentReactionResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

Read PutCommentReactionResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

Show PutCommentReactionResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

Generic PutCommentReactionResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.PutCommentReaction

Associated Types

type Rep PutCommentReactionResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" '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.