| Copyright | (c) 2013-2016 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 |
Network.AWS.CodeCommit.CreateBranch
Description
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.
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CreateBranch |
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.
Instances
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.
Destructuring the Response
createBranchResponse :: CreateBranchResponse Source #
Creates a value of CreateBranchResponse with the minimum fields required to make a request.
data CreateBranchResponse Source #
See: createBranchResponse smart constructor.