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

Amazonka.CodeCommit.CreateBranch

Description

Creates a 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

data CreateBranch Source #

Represents the input of a create branch operation.

See: newCreateBranch smart constructor.

Constructors

CreateBranch' 

Fields

Instances

Instances details
Eq CreateBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateBranch

Read CreateBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateBranch

Show CreateBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateBranch

Generic CreateBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateBranch

Associated Types

type Rep CreateBranch :: Type -> Type #

NFData CreateBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateBranch

Methods

rnf :: CreateBranch -> () #

Hashable CreateBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateBranch

ToJSON CreateBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateBranch

AWSRequest CreateBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateBranch

Associated Types

type AWSResponse CreateBranch #

ToHeaders CreateBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateBranch

ToPath CreateBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateBranch

ToQuery CreateBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateBranch

type Rep CreateBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateBranch

type Rep CreateBranch = D1 ('MetaData "CreateBranch" "Amazonka.CodeCommit.CreateBranch" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "CreateBranch'" 'PrefixI 'True) (S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "branchName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "commitId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateBranch

newCreateBranch Source #

Create a value of CreateBranch with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:repositoryName:CreateBranch', createBranch_repositoryName - The name of the repository in which you want to create the new branch.

$sel:branchName:CreateBranch', createBranch_branchName - The name of the new branch to create.

$sel:commitId:CreateBranch', createBranch_commitId - The ID of the commit to point the new branch to.

Request Lenses

createBranch_repositoryName :: Lens' CreateBranch Text Source #

The name of the repository in which you want to create the new branch.

createBranch_branchName :: Lens' CreateBranch Text Source #

The name of the new branch to create.

createBranch_commitId :: Lens' CreateBranch Text Source #

The ID of the commit to point the new branch to.

Destructuring the Response

data CreateBranchResponse Source #

See: newCreateBranchResponse smart constructor.

Constructors

CreateBranchResponse' 

Instances

Instances details
Eq CreateBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateBranch

Read CreateBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateBranch

Show CreateBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateBranch

Generic CreateBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateBranch

Associated Types

type Rep CreateBranchResponse :: Type -> Type #

NFData CreateBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateBranch

Methods

rnf :: CreateBranchResponse -> () #

type Rep CreateBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateBranch

type Rep CreateBranchResponse = D1 ('MetaData "CreateBranchResponse" "Amazonka.CodeCommit.CreateBranch" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "CreateBranchResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newCreateBranchResponse :: CreateBranchResponse Source #

Create a value of CreateBranchResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.