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

Description

Returns information about a commit, including commit message and committer information.

Synopsis

Creating a Request

data GetCommit Source #

Represents the input of a get commit operation.

See: newGetCommit smart constructor.

Constructors

GetCommit' 

Fields

  • repositoryName :: Text

    The name of the repository to which the commit was made.

  • commitId :: Text

    The commit ID. Commit IDs are the full SHA ID of the commit.

Instances

Instances details
Eq GetCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

Read GetCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

Show GetCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

Generic GetCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

Associated Types

type Rep GetCommit :: Type -> Type #

NFData GetCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

Methods

rnf :: GetCommit -> () #

Hashable GetCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

ToJSON GetCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

AWSRequest GetCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

Associated Types

type AWSResponse GetCommit #

ToHeaders GetCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

Methods

toHeaders :: GetCommit -> [Header] #

ToPath GetCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

ToQuery GetCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

type Rep GetCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

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

Defined in Amazonka.CodeCommit.GetCommit

newGetCommit Source #

Create a value of GetCommit 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:repositoryName:GetCommit', getCommit_repositoryName - The name of the repository to which the commit was made.

$sel:commitId:GetCommit', getCommit_commitId - The commit ID. Commit IDs are the full SHA ID of the commit.

Request Lenses

getCommit_repositoryName :: Lens' GetCommit Text Source #

The name of the repository to which the commit was made.

getCommit_commitId :: Lens' GetCommit Text Source #

The commit ID. Commit IDs are the full SHA ID of the commit.

Destructuring the Response

data GetCommitResponse Source #

Represents the output of a get commit operation.

See: newGetCommitResponse smart constructor.

Constructors

GetCommitResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • commit :: Commit

    A commit data type object that contains information about the specified commit.

Instances

Instances details
Eq GetCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

Read GetCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

Show GetCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

Generic GetCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

Associated Types

type Rep GetCommitResponse :: Type -> Type #

NFData GetCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

Methods

rnf :: GetCommitResponse -> () #

type Rep GetCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

type Rep GetCommitResponse = D1 ('MetaData "GetCommitResponse" "Amazonka.CodeCommit.GetCommit" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "GetCommitResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "commit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Commit)))

newGetCommitResponse Source #

Create a value of GetCommitResponse 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:httpStatus:GetCommitResponse', getCommitResponse_httpStatus - The response's http status code.

$sel:commit:GetCommitResponse', getCommitResponse_commit - A commit data type object that contains information about the specified commit.

Response Lenses

getCommitResponse_httpStatus :: Lens' GetCommitResponse Int Source #

The response's http status code.

getCommitResponse_commit :: Lens' GetCommitResponse Commit Source #

A commit data type object that contains information about the specified commit.