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

Contents

Description

Returns information about a commit, including commit message and committer information.

Synopsis

Creating a Request

getCommit Source #

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

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

data GetCommit Source #

Represents the input of a get commit operation.

See: getCommit smart constructor.

Instances

Eq GetCommit Source # 
Data GetCommit Source # 

Methods

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

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

toConstr :: GetCommit -> Constr #

dataTypeOf :: GetCommit -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetCommit Source # 
Show GetCommit Source # 
Generic GetCommit Source # 

Associated Types

type Rep GetCommit :: * -> * #

Hashable GetCommit Source # 
ToJSON GetCommit Source # 
NFData GetCommit Source # 

Methods

rnf :: GetCommit -> () #

AWSRequest GetCommit Source # 
ToPath GetCommit Source # 
ToHeaders GetCommit Source # 

Methods

toHeaders :: GetCommit -> [Header] #

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

Request Lenses

gcRepositoryName :: Lens' GetCommit Text Source #

The name of the repository to which the commit was made.

Destructuring the Response

getCommitResponse Source #

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

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

data GetCommitResponse Source #

Represents the output of a get commit operation.

See: getCommitResponse smart constructor.

Instances

Eq GetCommitResponse Source # 
Data GetCommitResponse Source # 

Methods

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

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

toConstr :: GetCommitResponse -> Constr #

dataTypeOf :: GetCommitResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetCommitResponse Source # 
Show GetCommitResponse Source # 
Generic GetCommitResponse Source # 
NFData GetCommitResponse Source # 

Methods

rnf :: GetCommitResponse -> () #

type Rep GetCommitResponse Source # 
type Rep GetCommitResponse = D1 (MetaData "GetCommitResponse" "Network.AWS.CodeCommit.GetCommit" "amazonka-codecommit-1.4.5-92hxoO5NQbL79RJ3cHsV8Z" False) (C1 (MetaCons "GetCommitResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_gcrsCommit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Commit))))

Response Lenses

gcrsResponseStatus :: Lens' GetCommitResponse Int Source #

  • - | The response status code.

gcrsCommit :: Lens' GetCommitResponse Commit Source #

Information about the specified commit.