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

Defined in Network.AWS.CodeCommit.GetBranch

Data GetBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetBranch

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

Defined in Network.AWS.CodeCommit.GetBranch

Show GetBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetBranch

Generic GetBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetBranch

Associated Types

type Rep GetBranch :: Type -> Type #

Hashable GetBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetBranch

ToJSON GetBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetBranch

AWSRequest GetBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetBranch

Associated Types

type Rs GetBranch :: Type #

ToHeaders GetBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetBranch

Methods

toHeaders :: GetBranch -> [Header] #

ToPath GetBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetBranch

ToQuery GetBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetBranch

NFData GetBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetBranch

Methods

rnf :: GetBranch -> () #

type Rep GetBranch Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetBranch

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

Defined in Network.AWS.CodeCommit.GetBranch

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

Defined in Network.AWS.CodeCommit.GetBranch

Data GetBranchResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetBranch

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

Defined in Network.AWS.CodeCommit.GetBranch

Show GetBranchResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetBranch

Generic GetBranchResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetBranch

Associated Types

type Rep GetBranchResponse :: Type -> Type #

NFData GetBranchResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetBranch

Methods

rnf :: GetBranchResponse -> () #

type Rep GetBranchResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetBranch

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

Response Lenses

grsResponseStatus :: Lens' GetBranchResponse Int Source #

  • - | The response status code.