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

Contents

Description

Returns information about a repository branch, including its name and the last commit ID.

Synopsis

Creating a Request

getBranch :: GetBranch Source #

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

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

  • gbBranchName - The name of the branch for which you want to retrieve information.
  • gbRepositoryName - The name of the repository that contains the branch for which you want to retrieve information.

data GetBranch Source #

Represents the input of a get branch operation.

See: getBranch smart constructor.

Instances

Eq GetBranch Source # 
Data GetBranch Source # 

Methods

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

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

toConstr :: GetBranch -> Constr #

dataTypeOf :: GetBranch -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetBranch Source # 
Show GetBranch Source # 
Generic GetBranch Source # 

Associated Types

type Rep GetBranch :: * -> * #

Hashable GetBranch Source # 
ToJSON GetBranch Source # 
NFData GetBranch Source # 

Methods

rnf :: GetBranch -> () #

AWSRequest GetBranch Source # 
ToPath GetBranch Source # 
ToHeaders GetBranch Source # 

Methods

toHeaders :: GetBranch -> [Header] #

ToQuery GetBranch Source # 
type Rep GetBranch Source # 
type Rep GetBranch = D1 (MetaData "GetBranch" "Network.AWS.CodeCommit.GetBranch" "amazonka-codecommit-1.4.5-92hxoO5NQbL79RJ3cHsV8Z" False) (C1 (MetaCons "GetBranch'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gbBranchName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gbRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))
type Rs GetBranch Source # 

Request Lenses

gbBranchName :: Lens' GetBranch (Maybe Text) Source #

The name of the branch for which you want to retrieve information.

gbRepositoryName :: Lens' GetBranch (Maybe Text) Source #

The name of the repository that contains the branch for which you want to retrieve information.

Destructuring the Response

getBranchResponse Source #

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

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

data GetBranchResponse Source #

Represents the output of a get branch operation.

See: getBranchResponse smart constructor.

Instances

Eq GetBranchResponse Source # 
Data GetBranchResponse Source # 

Methods

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

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

toConstr :: GetBranchResponse -> Constr #

dataTypeOf :: GetBranchResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetBranchResponse Source # 
Show GetBranchResponse Source # 
Generic GetBranchResponse Source # 
NFData GetBranchResponse Source # 

Methods

rnf :: GetBranchResponse -> () #

type Rep GetBranchResponse Source # 
type Rep GetBranchResponse = D1 (MetaData "GetBranchResponse" "Network.AWS.CodeCommit.GetBranch" "amazonka-codecommit-1.4.5-92hxoO5NQbL79RJ3cHsV8Z" False) (C1 (MetaCons "GetBranchResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gbrsBranch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe BranchInfo))) (S1 (MetaSel (Just Symbol "_gbrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

gbrsResponseStatus :: Lens' GetBranchResponse Int Source #

  • - | The response status code.