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

Defined in Network.AWS.CodeCommit.ListBranches

Data ListBranches Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListBranches

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

Defined in Network.AWS.CodeCommit.ListBranches

Show ListBranches Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListBranches

Generic ListBranches Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListBranches

Associated Types

type Rep ListBranches :: Type -> Type #

Hashable ListBranches Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListBranches

ToJSON ListBranches Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListBranches

AWSPager ListBranches Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListBranches

AWSRequest ListBranches Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListBranches

Associated Types

type Rs ListBranches :: Type #

ToHeaders ListBranches Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListBranches

ToPath ListBranches Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListBranches

ToQuery ListBranches Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListBranches

NFData ListBranches Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListBranches

Methods

rnf :: ListBranches -> () #

type Rep ListBranches Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListBranches

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

Defined in Network.AWS.CodeCommit.ListBranches

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

Defined in Network.AWS.CodeCommit.ListBranches

Data ListBranchesResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListBranches

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

Defined in Network.AWS.CodeCommit.ListBranches

Show ListBranchesResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListBranches

Generic ListBranchesResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListBranches

Associated Types

type Rep ListBranchesResponse :: Type -> Type #

NFData ListBranchesResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListBranches

Methods

rnf :: ListBranchesResponse -> () #

type Rep ListBranchesResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListBranches

type Rep ListBranchesResponse = D1 (MetaData "ListBranchesResponse" "Network.AWS.CodeCommit.ListBranches" "amazonka-codecommit-1.6.1-5oFbBVW9gHvCvarYcjcXps" False) (C1 (MetaCons "ListBranchesResponse'" PrefixI True) (S1 (MetaSel (Just "_lbrsBranches") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 (MetaSel (Just "_lbrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_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.