amazonka-codecommit-1.5.0: Amazon CodeCommit SDK.

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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.

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 # 
Hashable UpdateDefaultBranch Source # 
ToJSON UpdateDefaultBranch Source # 
NFData UpdateDefaultBranch Source # 

Methods

rnf :: UpdateDefaultBranch -> () #

AWSRequest UpdateDefaultBranch Source # 
ToQuery UpdateDefaultBranch Source # 
ToPath UpdateDefaultBranch Source # 
ToHeaders UpdateDefaultBranch Source # 
type Rep UpdateDefaultBranch Source # 
type Rep UpdateDefaultBranch = D1 (MetaData "UpdateDefaultBranch" "Network.AWS.CodeCommit.UpdateDefaultBranch" "amazonka-codecommit-1.5.0-KpuBz1wlDu33SLAQFXGcI6" 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.5.0-KpuBz1wlDu33SLAQFXGcI6" False) (C1 (MetaCons "UpdateDefaultBranchResponse'" PrefixI False) U1)