| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CodeCommit.ListBranches
Description
Gets information about one or more branches in a repository.
This operation returns paginated results.
Synopsis
- data ListBranches = ListBranches' {
- nextToken :: Maybe Text
- repositoryName :: Text
- newListBranches :: Text -> ListBranches
- listBranches_nextToken :: Lens' ListBranches (Maybe Text)
- listBranches_repositoryName :: Lens' ListBranches Text
- data ListBranchesResponse = ListBranchesResponse' {}
- newListBranchesResponse :: Int -> ListBranchesResponse
- listBranchesResponse_branches :: Lens' ListBranchesResponse (Maybe [Text])
- listBranchesResponse_nextToken :: Lens' ListBranchesResponse (Maybe Text)
- listBranchesResponse_httpStatus :: Lens' ListBranchesResponse Int
Creating a Request
data ListBranches Source #
Represents the input of a list branches operation.
See: newListBranches smart constructor.
Constructors
| ListBranches' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ListBranches |
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' | |
Instances
newListBranchesResponse Source #
Arguments
| :: Int | |
| -> ListBranchesResponse |
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_branches :: Lens' ListBranchesResponse (Maybe [Text]) Source #
The list of branch names.
listBranchesResponse_nextToken :: Lens' ListBranchesResponse (Maybe Text) Source #
An enumeration token that returns the batch of the results.
listBranchesResponse_httpStatus :: Lens' ListBranchesResponse Int Source #
The response's http status code.