amazonka-codecommit-1.4.0: Amazon CodeCommit SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CodeCommit.CreateBranch

Contents

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.

Synopsis

Creating a Request

createBranch Source

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:

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.