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

Description

Gets information about one or more branches in a repository.

This operation returns paginated results.

Synopsis

Creating a Request

data ListBranches Source #

Represents the input of a list branches operation.

See: newListBranches smart constructor.

Constructors

ListBranches' 

Fields

Instances

Instances details
ToJSON ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

ToHeaders ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

ToPath ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

ToQuery ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

AWSPager ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

AWSRequest ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

Associated Types

type AWSResponse ListBranches #

Generic ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

Associated Types

type Rep ListBranches :: Type -> Type #

Read ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

Show ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

NFData ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

Methods

rnf :: ListBranches -> () #

Eq ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

Hashable ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

type AWSResponse ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

type Rep ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

type Rep ListBranches = D1 ('MetaData "ListBranches" "Amazonka.CodeCommit.ListBranches" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" 'False) (C1 ('MetaCons "ListBranches'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newListBranches Source #

Create a value of ListBranches 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:

ListBranches, listBranches_nextToken - An enumeration token that allows the operation to batch the results.

ListBranches, listBranches_repositoryName - The name of the repository that contains the branches.

Request Lenses

listBranches_nextToken :: Lens' ListBranches (Maybe Text) Source #

An enumeration token that allows the operation to batch the results.

listBranches_repositoryName :: Lens' ListBranches Text Source #

The name of the repository that contains the branches.

Destructuring the Response

data ListBranchesResponse Source #

Represents the output of a list branches operation.

See: newListBranchesResponse smart constructor.

Constructors

ListBranchesResponse' 

Fields

Instances

Instances details
Generic ListBranchesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

Associated Types

type Rep ListBranchesResponse :: Type -> Type #

Read ListBranchesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

Show ListBranchesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

NFData ListBranchesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

Methods

rnf :: ListBranchesResponse -> () #

Eq ListBranchesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

type Rep ListBranchesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

type Rep ListBranchesResponse = D1 ('MetaData "ListBranchesResponse" "Amazonka.CodeCommit.ListBranches" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" 'False) (C1 ('MetaCons "ListBranchesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "branches") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListBranchesResponse Source #

Create a value of ListBranchesResponse 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:

ListBranchesResponse, listBranchesResponse_branches - The list of branch names.

ListBranches, listBranchesResponse_nextToken - An enumeration token that returns the batch of the results.

$sel:httpStatus:ListBranchesResponse', listBranchesResponse_httpStatus - The response's http status code.

Response Lenses

listBranchesResponse_nextToken :: Lens' ListBranchesResponse (Maybe Text) Source #

An enumeration token that returns the batch of the results.