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

Contents

Description

Gets information about one or more branches in a repository.

This operation returns paginated results.

Synopsis

Creating a Request

listBranches Source #

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

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

  • lbNextToken - An enumeration token that allows the operation to batch the results.
  • lbRepositoryName - The name of the repository that contains the branches.

data ListBranches Source #

Represents the input of a list branches operation.

See: listBranches smart constructor.

Instances

Eq ListBranches Source # 
Data ListBranches Source # 

Methods

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

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

toConstr :: ListBranches -> Constr #

dataTypeOf :: ListBranches -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListBranches Source # 
Show ListBranches Source # 
Generic ListBranches Source # 

Associated Types

type Rep ListBranches :: * -> * #

Hashable ListBranches Source # 
ToJSON ListBranches Source # 
NFData ListBranches Source # 

Methods

rnf :: ListBranches -> () #

AWSPager ListBranches Source # 
AWSRequest ListBranches Source # 
ToQuery ListBranches Source # 
ToPath ListBranches Source # 
ToHeaders ListBranches Source # 
type Rep ListBranches Source # 
type Rep ListBranches = D1 (MetaData "ListBranches" "Network.AWS.CodeCommit.ListBranches" "amazonka-codecommit-1.5.0-KpuBz1wlDu33SLAQFXGcI6" False) (C1 (MetaCons "ListBranches'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lbNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lbRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs ListBranches Source # 

Request Lenses

lbNextToken :: Lens' ListBranches (Maybe Text) Source #

An enumeration token that allows the operation to batch the results.

lbRepositoryName :: Lens' ListBranches Text Source #

The name of the repository that contains the branches.

Destructuring the Response

listBranchesResponse Source #

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

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

data ListBranchesResponse Source #

Represents the output of a list branches operation.

See: listBranchesResponse smart constructor.

Instances

Eq ListBranchesResponse Source # 
Data ListBranchesResponse Source # 

Methods

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

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

toConstr :: ListBranchesResponse -> Constr #

dataTypeOf :: ListBranchesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListBranchesResponse Source # 
Show ListBranchesResponse Source # 
Generic ListBranchesResponse Source # 
NFData ListBranchesResponse Source # 

Methods

rnf :: ListBranchesResponse -> () #

type Rep ListBranchesResponse Source # 
type Rep ListBranchesResponse = D1 (MetaData "ListBranchesResponse" "Network.AWS.CodeCommit.ListBranches" "amazonka-codecommit-1.5.0-KpuBz1wlDu33SLAQFXGcI6" False) (C1 (MetaCons "ListBranchesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lbrsBranches") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_lbrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lbrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

lbrsBranches :: Lens' ListBranchesResponse [Text] Source #

The list of branch names.

lbrsNextToken :: Lens' ListBranchesResponse (Maybe Text) Source #

An enumeration token that returns the batch of the results.

lbrsResponseStatus :: Lens' ListBranchesResponse Int Source #

  • - | The response status code.