amazonka-codecommit-1.3.5: Amazon CodeCommit SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CodeCommit.ListBranches

Contents

Description

Gets information about one or more branches in a repository.

See: AWS API Reference for ListBranches.

Synopsis

Creating a Request

listBranches Source

Creates a value of ListBranches with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

lbNextToken :: Lens' ListBranches (Maybe Text) Source

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

lbRepositoryName :: Lens' ListBranches Text Source

The name of the repository that contains the branches.

Destructuring the Response

listBranchesResponse Source

Creates a value of ListBranchesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

lbrsBranches :: Lens' ListBranchesResponse [Text] Source

The list of branch names.

lbrsNextToken :: Lens' ListBranchesResponse (Maybe Text) Source

An enumeration token that returns the batch of the results.