amazonka-codecommit-1.6.1: Amazon CodeCommit SDK.

Copyright(c) 2013-2018 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 # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateDefaultBranch

Data UpdateDefaultBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateDefaultBranch

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 # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateDefaultBranch

Show UpdateDefaultBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateDefaultBranch

Generic UpdateDefaultBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateDefaultBranch

Associated Types

type Rep UpdateDefaultBranch :: Type -> Type #

Hashable UpdateDefaultBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateDefaultBranch

ToJSON UpdateDefaultBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateDefaultBranch

AWSRequest UpdateDefaultBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateDefaultBranch

Associated Types

type Rs UpdateDefaultBranch :: Type #

ToHeaders UpdateDefaultBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateDefaultBranch

ToPath UpdateDefaultBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateDefaultBranch

ToQuery UpdateDefaultBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateDefaultBranch

NFData UpdateDefaultBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateDefaultBranch

Methods

rnf :: UpdateDefaultBranch -> () #

type Rep UpdateDefaultBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateDefaultBranch

type Rep UpdateDefaultBranch = D1 (MetaData "UpdateDefaultBranch" "Network.AWS.CodeCommit.UpdateDefaultBranch" "amazonka-codecommit-1.6.1-5oFbBVW9gHvCvarYcjcXps" False) (C1 (MetaCons "UpdateDefaultBranch'" PrefixI True) (S1 (MetaSel (Just "_udbRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_udbDefaultBranchName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs UpdateDefaultBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateDefaultBranch

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 # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateDefaultBranch

Data UpdateDefaultBranchResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateDefaultBranch

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 # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateDefaultBranch

Show UpdateDefaultBranchResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateDefaultBranch

Generic UpdateDefaultBranchResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateDefaultBranch

Associated Types

type Rep UpdateDefaultBranchResponse :: Type -> Type #

NFData UpdateDefaultBranchResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateDefaultBranch

type Rep UpdateDefaultBranchResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateDefaultBranch

type Rep UpdateDefaultBranchResponse = D1 (MetaData "UpdateDefaultBranchResponse" "Network.AWS.CodeCommit.UpdateDefaultBranch" "amazonka-codecommit-1.6.1-5oFbBVW9gHvCvarYcjcXps" False) (C1 (MetaCons "UpdateDefaultBranchResponse'" PrefixI False) (U1 :: Type -> Type))