| Copyright | (c) 2013-2015 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <[email protected]> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.CodeCommit.ListBranches
Description
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)
- lbrsResponseStatus :: Lens' ListBranchesResponse Int
Creating a Request
Arguments
| :: Text | |
| -> ListBranches |
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.
Instances
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
Arguments
| :: Int | |
| -> ListBranchesResponse |
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.
lbrsResponseStatus :: Lens' ListBranchesResponse Int Source
The response status code.