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 |
Creates a new branch in a repository and points the branch to a commit.
Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.
See: AWS API Reference for CreateBranch.
Creating a Request
Creates a value of CreateBranch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateBranch Source
Represents the input of a create branch operation.
See: createBranch
smart constructor.
Request Lenses
cbRepositoryName :: Lens' CreateBranch Text Source
The name of the repository in which you want to create the new branch.
cbBranchName :: Lens' CreateBranch Text Source
The name of the new branch to create.
cbCommitId :: Lens' CreateBranch Text Source
The ID of the commit to point the new branch to.
If this commit ID is not specified, the new branch will point to the commit that is pointed to by the repository's default branch.
Destructuring the Response
createBranchResponse :: CreateBranchResponse Source
Creates a value of CreateBranchResponse
with the minimum fields required to make a request.