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

Description

Returns the content of a comment made on a change, file, or commit in a repository.

Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.

Synopsis

Creating a Request

data GetComment Source #

See: newGetComment smart constructor.

Constructors

GetComment' 

Fields

  • commentId :: Text

    The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.

Instances

Instances details
Eq GetComment Source # 
Instance details

Defined in Amazonka.CodeCommit.GetComment

Read GetComment Source # 
Instance details

Defined in Amazonka.CodeCommit.GetComment

Show GetComment Source # 
Instance details

Defined in Amazonka.CodeCommit.GetComment

Generic GetComment Source # 
Instance details

Defined in Amazonka.CodeCommit.GetComment

Associated Types

type Rep GetComment :: Type -> Type #

NFData GetComment Source # 
Instance details

Defined in Amazonka.CodeCommit.GetComment

Methods

rnf :: GetComment -> () #

Hashable GetComment Source # 
Instance details

Defined in Amazonka.CodeCommit.GetComment

ToJSON GetComment Source # 
Instance details

Defined in Amazonka.CodeCommit.GetComment

AWSRequest GetComment Source # 
Instance details

Defined in Amazonka.CodeCommit.GetComment

Associated Types

type AWSResponse GetComment #

ToHeaders GetComment Source # 
Instance details

Defined in Amazonka.CodeCommit.GetComment

Methods

toHeaders :: GetComment -> [Header] #

ToPath GetComment Source # 
Instance details

Defined in Amazonka.CodeCommit.GetComment

ToQuery GetComment Source # 
Instance details

Defined in Amazonka.CodeCommit.GetComment

type Rep GetComment Source # 
Instance details

Defined in Amazonka.CodeCommit.GetComment

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

Defined in Amazonka.CodeCommit.GetComment

newGetComment Source #

Create a value of GetComment 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:GetComment', getComment_commentId - The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.

Request Lenses

getComment_commentId :: Lens' GetComment Text Source #

The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.

Destructuring the Response

data GetCommentResponse Source #

See: newGetCommentResponse smart constructor.

Constructors

GetCommentResponse' 

Fields

Instances

Instances details
Eq GetCommentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetComment

Read GetCommentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetComment

Show GetCommentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetComment

Generic GetCommentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetComment

Associated Types

type Rep GetCommentResponse :: Type -> Type #

NFData GetCommentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetComment

Methods

rnf :: GetCommentResponse -> () #

type Rep GetCommentResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetComment

type Rep GetCommentResponse = D1 ('MetaData "GetCommentResponse" "Amazonka.CodeCommit.GetComment" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "GetCommentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "comment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Comment)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetCommentResponse Source #

Create a value of GetCommentResponse 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:GetCommentResponse', getCommentResponse_comment - The contents of the comment.

$sel:httpStatus:GetCommentResponse', getCommentResponse_httpStatus - The response's http status code.

Response Lenses