Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Gets information about one or more branches in a repository.
See: AWS API Reference for ListBranches.
- listBranches :: Text -> ListBranches
- data ListBranches
- lbNextToken :: Lens' ListBranches (Maybe Text)
- lbRepositoryName :: Lens' ListBranches Text
- listBranchesResponse :: Int -> ListBranchesResponse
- data ListBranchesResponse
- lbrsBranches :: Lens' ListBranchesResponse [Text]
- lbrsNextToken :: Lens' ListBranchesResponse (Maybe Text)
- lbrsStatus :: Lens' ListBranchesResponse Int
Creating a Request
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:
data ListBranches Source
Represents the input of a list branches operation.
See: listBranches
smart constructor.
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
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:
data ListBranchesResponse Source
Represents the output of a list branches operation.
See: listBranchesResponse
smart constructor.
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.
lbrsStatus :: Lens' ListBranchesResponse Int Source
The response status code.