amazonka-codecommit-1.3.1: Amazon CodeCommit SDK.

Copyright(c) 2013-2015 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.

See: AWS API Reference for CreateBranch.

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.

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.