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.DeleteBranch

Contents

Description

Deletes a branch from a repository, unless that branch is the default branch for the repository.

Synopsis

Creating a Request

deleteBranch Source #

Creates a value of DeleteBranch with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data DeleteBranch Source #

Represents the input of a delete branch operation.

See: deleteBranch smart constructor.

Instances
Eq DeleteBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.DeleteBranch

Data DeleteBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.DeleteBranch

Methods

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

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

toConstr :: DeleteBranch -> Constr #

dataTypeOf :: DeleteBranch -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.DeleteBranch

Show DeleteBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.DeleteBranch

Generic DeleteBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.DeleteBranch

Associated Types

type Rep DeleteBranch :: Type -> Type #

Hashable DeleteBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.DeleteBranch

ToJSON DeleteBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.DeleteBranch

AWSRequest DeleteBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.DeleteBranch

Associated Types

type Rs DeleteBranch :: Type #

ToHeaders DeleteBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.DeleteBranch

ToPath DeleteBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.DeleteBranch

ToQuery DeleteBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.DeleteBranch

NFData DeleteBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.DeleteBranch

Methods

rnf :: DeleteBranch -> () #

type Rep DeleteBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.DeleteBranch

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

Defined in Network.AWS.CodeCommit.DeleteBranch

Request Lenses

dbRepositoryName :: Lens' DeleteBranch Text Source #

The name of the repository that contains the branch to be deleted.

dbBranchName :: Lens' DeleteBranch Text Source #

The name of the branch to delete.

Destructuring the Response

deleteBranchResponse Source #

Creates a value of DeleteBranchResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dbrsDeletedBranch - Information about the branch deleted by the operation, including the branch name and the commit ID that was the tip of the branch.
  • dbrsResponseStatus - -- | The response status code.

data DeleteBranchResponse Source #

Represents the output of a delete branch operation.

See: deleteBranchResponse smart constructor.

Instances
Eq DeleteBranchResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.DeleteBranch

Data DeleteBranchResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.DeleteBranch

Methods

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

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

toConstr :: DeleteBranchResponse -> Constr #

dataTypeOf :: DeleteBranchResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteBranchResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.DeleteBranch

Show DeleteBranchResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.DeleteBranch

Generic DeleteBranchResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.DeleteBranch

Associated Types

type Rep DeleteBranchResponse :: Type -> Type #

NFData DeleteBranchResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.DeleteBranch

Methods

rnf :: DeleteBranchResponse -> () #

type Rep DeleteBranchResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.DeleteBranch

type Rep DeleteBranchResponse = D1 (MetaData "DeleteBranchResponse" "Network.AWS.CodeCommit.DeleteBranch" "amazonka-codecommit-1.6.1-5oFbBVW9gHvCvarYcjcXps" False) (C1 (MetaCons "DeleteBranchResponse'" PrefixI True) (S1 (MetaSel (Just "_dbrsDeletedBranch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe BranchInfo)) :*: S1 (MetaSel (Just "_dbrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

dbrsDeletedBranch :: Lens' DeleteBranchResponse (Maybe BranchInfo) Source #

Information about the branch deleted by the operation, including the branch name and the commit ID that was the tip of the branch.

dbrsResponseStatus :: Lens' DeleteBranchResponse Int Source #

  • - | The response status code.