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.UpdateComment

Description

Replaces the contents of a comment.

Synopsis

Creating a Request

data UpdateComment Source #

See: newUpdateComment smart constructor.

Constructors

UpdateComment' 

Fields

  • commentId :: Text

    The system-generated ID of the comment you want to update. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.

  • content :: Text

    The updated content to replace the existing content of the comment.

Instances

Instances details
ToJSON UpdateComment Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

ToHeaders UpdateComment Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

ToPath UpdateComment Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

ToQuery UpdateComment Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

AWSRequest UpdateComment Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

Associated Types

type AWSResponse UpdateComment #

Generic UpdateComment Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

Associated Types

type Rep UpdateComment :: Type -> Type #

Read UpdateComment Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

Show UpdateComment Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

NFData UpdateComment Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

Methods

rnf :: UpdateComment -> () #

Eq UpdateComment Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

Hashable UpdateComment Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

type AWSResponse UpdateComment Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

type Rep UpdateComment Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

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

newUpdateComment Source #

Create a value of UpdateComment 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:

UpdateComment, updateComment_commentId - The system-generated ID of the comment you want to update. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.

UpdateComment, updateComment_content - The updated content to replace the existing content of the comment.

Request Lenses

updateComment_commentId :: Lens' UpdateComment Text Source #

The system-generated ID of the comment you want to update. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.

updateComment_content :: Lens' UpdateComment Text Source #

The updated content to replace the existing content of the comment.

Destructuring the Response

data UpdateCommentResponse Source #

See: newUpdateCommentResponse smart constructor.

Constructors

UpdateCommentResponse' 

Fields

Instances

Instances details
Generic UpdateCommentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

Associated Types

type Rep UpdateCommentResponse :: Type -> Type #

Read UpdateCommentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

Show UpdateCommentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

NFData UpdateCommentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

Methods

rnf :: UpdateCommentResponse -> () #

Eq UpdateCommentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

type Rep UpdateCommentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

type Rep UpdateCommentResponse = D1 ('MetaData "UpdateCommentResponse" "Amazonka.CodeCommit.UpdateComment" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" 'False) (C1 ('MetaCons "UpdateCommentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "comment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Comment)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateCommentResponse Source #

Create a value of UpdateCommentResponse 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:comment:UpdateCommentResponse', updateCommentResponse_comment - Information about the updated comment.

$sel:httpStatus:UpdateCommentResponse', updateCommentResponse_httpStatus - The response's http status code.

Response Lenses