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

Description

Returns information about a repository branch, including its name and the last commit ID.

Synopsis

Creating a Request

data GetBranch Source #

Represents the input of a get branch operation.

See: newGetBranch smart constructor.

Constructors

GetBranch' 

Fields

  • branchName :: Maybe Text

    The name of the branch for which you want to retrieve information.

  • repositoryName :: Maybe Text

    The name of the repository that contains the branch for which you want to retrieve information.

Instances

Instances details
Eq GetBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.GetBranch

Read GetBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.GetBranch

Show GetBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.GetBranch

Generic GetBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.GetBranch

Associated Types

type Rep GetBranch :: Type -> Type #

NFData GetBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.GetBranch

Methods

rnf :: GetBranch -> () #

Hashable GetBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.GetBranch

ToJSON GetBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.GetBranch

AWSRequest GetBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.GetBranch

Associated Types

type AWSResponse GetBranch #

ToHeaders GetBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.GetBranch

Methods

toHeaders :: GetBranch -> [Header] #

ToPath GetBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.GetBranch

ToQuery GetBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.GetBranch

type Rep GetBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.GetBranch

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

Defined in Amazonka.CodeCommit.GetBranch

newGetBranch :: GetBranch Source #

Create a value of GetBranch 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:branchName:GetBranch', getBranch_branchName - The name of the branch for which you want to retrieve information.

$sel:repositoryName:GetBranch', getBranch_repositoryName - The name of the repository that contains the branch for which you want to retrieve information.

Request Lenses

getBranch_branchName :: Lens' GetBranch (Maybe Text) Source #

The name of the branch for which you want to retrieve information.

getBranch_repositoryName :: Lens' GetBranch (Maybe Text) Source #

The name of the repository that contains the branch for which you want to retrieve information.

Destructuring the Response

data GetBranchResponse Source #

Represents the output of a get branch operation.

See: newGetBranchResponse smart constructor.

Constructors

GetBranchResponse' 

Fields

Instances

Instances details
Eq GetBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetBranch

Read GetBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetBranch

Show GetBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetBranch

Generic GetBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetBranch

Associated Types

type Rep GetBranchResponse :: Type -> Type #

NFData GetBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetBranch

Methods

rnf :: GetBranchResponse -> () #

type Rep GetBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetBranch

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

newGetBranchResponse Source #

Create a value of GetBranchResponse 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:branch:GetBranchResponse', getBranchResponse_branch - The name of the branch.

$sel:httpStatus:GetBranchResponse', getBranchResponse_httpStatus - The response's http status code.

Response Lenses

getBranchResponse_httpStatus :: Lens' GetBranchResponse Int Source #

The response's http status code.