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

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:

data UpdateDefaultBranch Source #

Represents the input of an update default branch operation.

See: updateDefaultBranch smart constructor.

Instances

Eq UpdateDefaultBranch Source # 
Data UpdateDefaultBranch Source # 

Methods

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

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

toConstr :: UpdateDefaultBranch -> Constr #

dataTypeOf :: UpdateDefaultBranch -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateDefaultBranch Source # 
Show UpdateDefaultBranch Source # 
Generic UpdateDefaultBranch Source # 
ToJSON UpdateDefaultBranch Source # 
Hashable UpdateDefaultBranch Source # 
NFData UpdateDefaultBranch Source # 

Methods

rnf :: UpdateDefaultBranch -> () #

AWSRequest UpdateDefaultBranch Source # 
ToPath UpdateDefaultBranch Source # 
ToHeaders UpdateDefaultBranch Source # 
ToQuery UpdateDefaultBranch Source # 
type Rep UpdateDefaultBranch Source # 
type Rep UpdateDefaultBranch = D1 (MetaData "UpdateDefaultBranch" "Network.AWS.CodeCommit.UpdateDefaultBranch" "amazonka-codecommit-1.4.2-6rTg36NbrSs15dWzQRfbbi" False) (C1 (MetaCons "UpdateDefaultBranch'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_udbRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_udbDefaultBranchName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs UpdateDefaultBranch Source # 

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.

data UpdateDefaultBranchResponse Source #

See: updateDefaultBranchResponse smart constructor.

Instances

Eq UpdateDefaultBranchResponse Source # 
Data UpdateDefaultBranchResponse Source # 

Methods

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

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

toConstr :: UpdateDefaultBranchResponse -> Constr #

dataTypeOf :: UpdateDefaultBranchResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateDefaultBranchResponse Source # 
Show UpdateDefaultBranchResponse Source # 
Generic UpdateDefaultBranchResponse Source # 
NFData UpdateDefaultBranchResponse Source # 
type Rep UpdateDefaultBranchResponse Source # 
type Rep UpdateDefaultBranchResponse = D1 (MetaData "UpdateDefaultBranchResponse" "Network.AWS.CodeCommit.UpdateDefaultBranch" "amazonka-codecommit-1.4.2-6rTg36NbrSs15dWzQRfbbi" False) (C1 (MetaCons "UpdateDefaultBranchResponse'" PrefixI False) U1)