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.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
ToJSON GetCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.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

AWSRequest GetCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

Associated Types

type AWSResponse GetCommit #

Generic GetCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

Associated Types

type Rep GetCommit :: Type -> Type #

Read GetCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

Show GetCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

NFData GetCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

Methods

rnf :: GetCommit -> () #

Eq GetCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

Hashable GetCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

type AWSResponse 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" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" 'False) (C1 ('MetaCons "GetCommit'" 'PrefixI 'True) (S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "commitId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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:

GetCommit, getCommit_repositoryName - The name of the repository to which the commit was made.

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
Generic GetCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

Associated Types

type Rep GetCommitResponse :: Type -> Type #

Read GetCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

Show GetCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

NFData GetCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

Methods

rnf :: GetCommitResponse -> () #

Eq GetCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

type Rep GetCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetCommit

type Rep GetCommitResponse = D1 ('MetaData "GetCommitResponse" "Amazonka.CodeCommit.GetCommit" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" '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.