amazonka-codecommit-1.3.5: 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.UpdateDefaultBranch

Contents

Description

Sets or changes the default branch name for the specified repository.

If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.

See: AWS API Reference for UpdateDefaultBranch.

Synopsis

Creating a Request

updateDefaultBranch Source

Creates a value of UpdateDefaultBranch with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

udbRepositoryName :: Lens' UpdateDefaultBranch Text Source

The name of the repository to set or change the default branch for.

udbDefaultBranchName :: Lens' UpdateDefaultBranch Text Source

The name of the branch to set as the default.

Destructuring the Response

updateDefaultBranchResponse :: UpdateDefaultBranchResponse Source

Creates a value of UpdateDefaultBranchResponse with the minimum fields required to make a request.