| 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.GetBranch
Description
Returns information about a repository branch, including its name and the last commit ID.
Synopsis
- data GetBranch = GetBranch' {}
- newGetBranch :: GetBranch
- getBranch_branchName :: Lens' GetBranch (Maybe Text)
- getBranch_repositoryName :: Lens' GetBranch (Maybe Text)
- data GetBranchResponse = GetBranchResponse' {
- branch :: Maybe BranchInfo
- httpStatus :: Int
- newGetBranchResponse :: Int -> GetBranchResponse
- getBranchResponse_branch :: Lens' GetBranchResponse (Maybe BranchInfo)
- getBranchResponse_httpStatus :: Lens' GetBranchResponse Int
Creating a Request
Represents the input of a get branch operation.
See: newGetBranch smart constructor.
Constructors
| GetBranch' | |
Fields
| |
Instances
newGetBranch :: GetBranch Source #
Create a value of GetBranch 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:
GetBranch, getBranch_branchName - The name of the branch for which you want to retrieve information.
GetBranch, getBranch_repositoryName - The name of the repository that contains the branch for which you want
to retrieve information.
Request Lenses
getBranch_branchName :: Lens' GetBranch (Maybe Text) Source #
The name of the branch for which you want to retrieve information.
getBranch_repositoryName :: Lens' GetBranch (Maybe Text) Source #
The name of the repository that contains the branch for which you want to retrieve information.
Destructuring the Response
data GetBranchResponse Source #
Represents the output of a get branch operation.
See: newGetBranchResponse smart constructor.
Constructors
| GetBranchResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> GetBranchResponse |
Create a value of GetBranchResponse 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:
$sel:branch:GetBranchResponse', getBranchResponse_branch - The name of the branch.
$sel:httpStatus:GetBranchResponse', getBranchResponse_httpStatus - The response's http status code.
Response Lenses
getBranchResponse_branch :: Lens' GetBranchResponse (Maybe BranchInfo) Source #
The name of the branch.
getBranchResponse_httpStatus :: Lens' GetBranchResponse Int Source #
The response's http status code.