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

Defined in Amazonka.CodeCommit.UpdateComment

Read UpdateComment Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

Show UpdateComment Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

Generic UpdateComment Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

Associated Types

type Rep UpdateComment :: Type -> Type #

NFData UpdateComment Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

Methods

rnf :: UpdateComment -> () #

Hashable UpdateComment Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

ToJSON UpdateComment Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

AWSRequest UpdateComment Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

Associated Types

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

type Rep UpdateComment Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

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

Defined in Amazonka.CodeCommit.UpdateComment

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:

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

$sel:content: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
Eq UpdateCommentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

Read UpdateCommentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

Show UpdateCommentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

Generic UpdateCommentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

Associated Types

type Rep UpdateCommentResponse :: Type -> Type #

NFData UpdateCommentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

Methods

rnf :: UpdateCommentResponse -> () #

type Rep UpdateCommentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateComment

type Rep UpdateCommentResponse = D1 ('MetaData "UpdateCommentResponse" "Amazonka.CodeCommit.UpdateComment" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" '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