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

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:

  • cbRepositoryName - The name of the repository in which you want to create the new branch.
  • cbBranchName - The name of the new branch to create.
  • cbCommitId - The ID of the commit to point the new branch to.

data CreateBranch Source #

Represents the input of a create branch operation.

See: createBranch smart constructor.

Instances

Eq CreateBranch Source # 
Data CreateBranch Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateBranch -> c CreateBranch #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateBranch #

toConstr :: CreateBranch -> Constr #

dataTypeOf :: CreateBranch -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateBranch) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateBranch) #

gmapT :: (forall b. Data b => b -> b) -> CreateBranch -> CreateBranch #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateBranch -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateBranch -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateBranch -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateBranch -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateBranch -> m CreateBranch #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateBranch -> m CreateBranch #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateBranch -> m CreateBranch #

Read CreateBranch Source # 
Show CreateBranch Source # 
Generic CreateBranch Source # 

Associated Types

type Rep CreateBranch :: * -> * #

Hashable CreateBranch Source # 
ToJSON CreateBranch Source # 
NFData CreateBranch Source # 

Methods

rnf :: CreateBranch -> () #

AWSRequest CreateBranch Source # 
ToPath CreateBranch Source # 
ToHeaders CreateBranch Source # 
ToQuery CreateBranch Source # 
type Rep CreateBranch Source # 
type Rep CreateBranch = D1 (MetaData "CreateBranch" "Network.AWS.CodeCommit.CreateBranch" "amazonka-codecommit-1.4.5-92hxoO5NQbL79RJ3cHsV8Z" False) (C1 (MetaCons "CreateBranch'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cbRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_cbBranchName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_cbCommitId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CreateBranch Source # 

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.

Instances

Eq CreateBranchResponse Source # 
Data CreateBranchResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateBranchResponse -> c CreateBranchResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateBranchResponse #

toConstr :: CreateBranchResponse -> Constr #

dataTypeOf :: CreateBranchResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateBranchResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateBranchResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateBranchResponse -> CreateBranchResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateBranchResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateBranchResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateBranchResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateBranchResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateBranchResponse -> m CreateBranchResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateBranchResponse -> m CreateBranchResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateBranchResponse -> m CreateBranchResponse #

Read CreateBranchResponse Source # 
Show CreateBranchResponse Source # 
Generic CreateBranchResponse Source # 
NFData CreateBranchResponse Source # 

Methods

rnf :: CreateBranchResponse -> () #

type Rep CreateBranchResponse Source # 
type Rep CreateBranchResponse = D1 (MetaData "CreateBranchResponse" "Network.AWS.CodeCommit.CreateBranch" "amazonka-codecommit-1.4.5-92hxoO5NQbL79RJ3cHsV8Z" False) (C1 (MetaCons "CreateBranchResponse'" PrefixI False) U1)