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 |
Retrieves information about a repository branch, including its name and the last commit ID.
See: AWS API Reference for GetBranch.
- getBranch :: GetBranch
- data GetBranch
- gbBranchName :: Lens' GetBranch (Maybe Text)
- gbRepositoryName :: Lens' GetBranch (Maybe Text)
- getBranchResponse :: Int -> GetBranchResponse
- data GetBranchResponse
- gbrsBranch :: Lens' GetBranchResponse (Maybe BranchInfo)
- gbrsResponseStatus :: Lens' GetBranchResponse Int
Creating a Request
Creates a value of GetBranch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Represents the input of a get branch operation.
See: getBranch
smart constructor.
Request Lenses
gbBranchName :: Lens' GetBranch (Maybe Text) Source
The name of the branch for which you want to retrieve information.
Destructuring the Response
Creates a value of GetBranchResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetBranchResponse Source
Represents the output of a get branch operation.
See: getBranchResponse
smart constructor.
Response Lenses
gbrsBranch :: Lens' GetBranchResponse (Maybe BranchInfo) Source
The name of the branch.
gbrsResponseStatus :: Lens' GetBranchResponse Int Source
The response status code.