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

Description

Posts a comment on the comparison between two commits.

Synopsis

Creating a Request

data PostCommentForComparedCommit Source #

See: newPostCommentForComparedCommit smart constructor.

Constructors

PostCommentForComparedCommit' 

Fields

  • location :: Maybe Location

    The location of the comparison where you want to comment.

  • beforeCommitId :: Maybe Text

    To establish the directionality of the comparison, the full commit ID of the before commit. Required for commenting on any commit unless that commit is the initial commit.

  • clientRequestToken :: Maybe Text

    A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.

  • repositoryName :: Text

    The name of the repository where you want to post a comment on the comparison between commits.

  • afterCommitId :: Text

    To establish the directionality of the comparison, the full commit ID of the after commit.

  • content :: Text

    The content of the comment you want to make.

Instances

Instances details
Eq PostCommentForComparedCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.PostCommentForComparedCommit

Read PostCommentForComparedCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.PostCommentForComparedCommit

Show PostCommentForComparedCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.PostCommentForComparedCommit

Generic PostCommentForComparedCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.PostCommentForComparedCommit

Associated Types

type Rep PostCommentForComparedCommit :: Type -> Type #

NFData PostCommentForComparedCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.PostCommentForComparedCommit

Hashable PostCommentForComparedCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.PostCommentForComparedCommit

ToJSON PostCommentForComparedCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.PostCommentForComparedCommit

AWSRequest PostCommentForComparedCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.PostCommentForComparedCommit

ToHeaders PostCommentForComparedCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.PostCommentForComparedCommit

ToPath PostCommentForComparedCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.PostCommentForComparedCommit

ToQuery PostCommentForComparedCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.PostCommentForComparedCommit

type Rep PostCommentForComparedCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.PostCommentForComparedCommit

type Rep PostCommentForComparedCommit = D1 ('MetaData "PostCommentForComparedCommit" "Amazonka.CodeCommit.PostCommentForComparedCommit" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "PostCommentForComparedCommit'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Location)) :*: (S1 ('MetaSel ('Just "beforeCommitId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "afterCommitId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse PostCommentForComparedCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.PostCommentForComparedCommit

newPostCommentForComparedCommit Source #

Create a value of PostCommentForComparedCommit 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:location:PostCommentForComparedCommit', postCommentForComparedCommit_location - The location of the comparison where you want to comment.

$sel:beforeCommitId:PostCommentForComparedCommit', postCommentForComparedCommit_beforeCommitId - To establish the directionality of the comparison, the full commit ID of the before commit. Required for commenting on any commit unless that commit is the initial commit.

$sel:clientRequestToken:PostCommentForComparedCommit', postCommentForComparedCommit_clientRequestToken - A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.

$sel:repositoryName:PostCommentForComparedCommit', postCommentForComparedCommit_repositoryName - The name of the repository where you want to post a comment on the comparison between commits.

$sel:afterCommitId:PostCommentForComparedCommit', postCommentForComparedCommit_afterCommitId - To establish the directionality of the comparison, the full commit ID of the after commit.

$sel:content:PostCommentForComparedCommit', postCommentForComparedCommit_content - The content of the comment you want to make.

Request Lenses

postCommentForComparedCommit_location :: Lens' PostCommentForComparedCommit (Maybe Location) Source #

The location of the comparison where you want to comment.

postCommentForComparedCommit_beforeCommitId :: Lens' PostCommentForComparedCommit (Maybe Text) Source #

To establish the directionality of the comparison, the full commit ID of the before commit. Required for commenting on any commit unless that commit is the initial commit.

postCommentForComparedCommit_clientRequestToken :: Lens' PostCommentForComparedCommit (Maybe Text) Source #

A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.

postCommentForComparedCommit_repositoryName :: Lens' PostCommentForComparedCommit Text Source #

The name of the repository where you want to post a comment on the comparison between commits.

postCommentForComparedCommit_afterCommitId :: Lens' PostCommentForComparedCommit Text Source #

To establish the directionality of the comparison, the full commit ID of the after commit.

Destructuring the Response

data PostCommentForComparedCommitResponse Source #

Constructors

PostCommentForComparedCommitResponse' 

Fields

Instances

Instances details
Eq PostCommentForComparedCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.PostCommentForComparedCommit

Read PostCommentForComparedCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.PostCommentForComparedCommit

Show PostCommentForComparedCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.PostCommentForComparedCommit

Generic PostCommentForComparedCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.PostCommentForComparedCommit

NFData PostCommentForComparedCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.PostCommentForComparedCommit

type Rep PostCommentForComparedCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.PostCommentForComparedCommit

type Rep PostCommentForComparedCommitResponse = D1 ('MetaData "PostCommentForComparedCommitResponse" "Amazonka.CodeCommit.PostCommentForComparedCommit" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "PostCommentForComparedCommitResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "beforeBlobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Location))) :*: (S1 ('MetaSel ('Just "afterCommitId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "afterBlobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "beforeCommitId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "comment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Comment)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newPostCommentForComparedCommitResponse Source #

Create a value of PostCommentForComparedCommitResponse 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:beforeBlobId:PostCommentForComparedCommitResponse', postCommentForComparedCommitResponse_beforeBlobId - In the directionality you established, the blob ID of the before blob.

$sel:location:PostCommentForComparedCommit', postCommentForComparedCommitResponse_location - The location of the comment in the comparison between the two commits.

$sel:afterCommitId:PostCommentForComparedCommit', postCommentForComparedCommitResponse_afterCommitId - In the directionality you established, the full commit ID of the after commit.

$sel:afterBlobId:PostCommentForComparedCommitResponse', postCommentForComparedCommitResponse_afterBlobId - In the directionality you established, the blob ID of the after blob.

$sel:beforeCommitId:PostCommentForComparedCommit', postCommentForComparedCommitResponse_beforeCommitId - In the directionality you established, the full commit ID of the before commit.

$sel:repositoryName:PostCommentForComparedCommit', postCommentForComparedCommitResponse_repositoryName - The name of the repository where you posted a comment on the comparison between commits.

$sel:comment:PostCommentForComparedCommitResponse', postCommentForComparedCommitResponse_comment - The content of the comment you posted.

$sel:httpStatus:PostCommentForComparedCommitResponse', postCommentForComparedCommitResponse_httpStatus - The response's http status code.

Response Lenses

postCommentForComparedCommitResponse_beforeBlobId :: Lens' PostCommentForComparedCommitResponse (Maybe Text) Source #

In the directionality you established, the blob ID of the before blob.

postCommentForComparedCommitResponse_location :: Lens' PostCommentForComparedCommitResponse (Maybe Location) Source #

The location of the comment in the comparison between the two commits.

postCommentForComparedCommitResponse_afterCommitId :: Lens' PostCommentForComparedCommitResponse (Maybe Text) Source #

In the directionality you established, the full commit ID of the after commit.

postCommentForComparedCommitResponse_afterBlobId :: Lens' PostCommentForComparedCommitResponse (Maybe Text) Source #

In the directionality you established, the blob ID of the after blob.

postCommentForComparedCommitResponse_beforeCommitId :: Lens' PostCommentForComparedCommitResponse (Maybe Text) Source #

In the directionality you established, the full commit ID of the before commit.

postCommentForComparedCommitResponse_repositoryName :: Lens' PostCommentForComparedCommitResponse (Maybe Text) Source #

The name of the repository where you posted a comment on the comparison between commits.