amazonka-lambda-1.4.4: Amazon Lambda 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.Lambda.GetEventSourceMapping

Contents

Description

Returns configuration information for the specified event source mapping (see CreateEventSourceMapping).

This operation requires permission for the 'lambda:GetEventSourceMapping' action.

Synopsis

Creating a Request

getEventSourceMapping Source #

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

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

data GetEventSourceMapping Source #

See: getEventSourceMapping smart constructor.

Instances

Eq GetEventSourceMapping Source # 
Data GetEventSourceMapping Source # 

Methods

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

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

toConstr :: GetEventSourceMapping -> Constr #

dataTypeOf :: GetEventSourceMapping -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetEventSourceMapping Source # 
Show GetEventSourceMapping Source # 
Generic GetEventSourceMapping Source # 
Hashable GetEventSourceMapping Source # 
NFData GetEventSourceMapping Source # 

Methods

rnf :: GetEventSourceMapping -> () #

AWSRequest GetEventSourceMapping Source # 
ToPath GetEventSourceMapping Source # 
ToHeaders GetEventSourceMapping Source # 
ToQuery GetEventSourceMapping Source # 
type Rep GetEventSourceMapping Source # 
type Rep GetEventSourceMapping = D1 (MetaData "GetEventSourceMapping" "Network.AWS.Lambda.GetEventSourceMapping" "amazonka-lambda-1.4.4-JoFFgS97CamDNn2CLd77LP" True) (C1 (MetaCons "GetEventSourceMapping'" PrefixI True) (S1 (MetaSel (Just Symbol "_gesmUUId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs GetEventSourceMapping Source # 

Request Lenses

gesmUUId :: Lens' GetEventSourceMapping Text Source #

The AWS Lambda assigned ID of the event source mapping.

Destructuring the Response

data EventSourceMappingConfiguration Source #

Describes mapping between an Amazon Kinesis stream and a Lambda function.

See: eventSourceMappingConfiguration smart constructor.

Instances

Eq EventSourceMappingConfiguration Source # 
Data EventSourceMappingConfiguration Source # 

Methods

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

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

toConstr :: EventSourceMappingConfiguration -> Constr #

dataTypeOf :: EventSourceMappingConfiguration -> DataType #

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

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

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

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

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

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

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

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

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

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

Read EventSourceMappingConfiguration Source # 
Show EventSourceMappingConfiguration Source # 
Generic EventSourceMappingConfiguration Source # 
Hashable EventSourceMappingConfiguration Source # 
NFData EventSourceMappingConfiguration Source # 
FromJSON EventSourceMappingConfiguration Source # 
type Rep EventSourceMappingConfiguration Source # 
type Rep EventSourceMappingConfiguration = D1 (MetaData "EventSourceMappingConfiguration" "Network.AWS.Lambda.Types.Product" "amazonka-lambda-1.4.4-JoFFgS97CamDNn2CLd77LP" False) (C1 (MetaCons "EventSourceMappingConfiguration'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_esmcEventSourceARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_esmcState") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_esmcFunctionARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_esmcUUId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_esmcLastProcessingResult") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_esmcBatchSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)))) ((:*:) (S1 (MetaSel (Just Symbol "_esmcStateTransitionReason") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_esmcLastModified") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX)))))))

Response Lenses

esmcEventSourceARN :: Lens' EventSourceMappingConfiguration (Maybe Text) Source #

The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.

esmcState :: Lens' EventSourceMappingConfiguration (Maybe Text) Source #

The state of the event source mapping. It can be Creating, Enabled, Disabled, Enabling, Disabling, Updating, or Deleting.

esmcFunctionARN :: Lens' EventSourceMappingConfiguration (Maybe Text) Source #

The Lambda function to invoke when AWS Lambda detects an event on the stream.

esmcUUId :: Lens' EventSourceMappingConfiguration (Maybe Text) Source #

The AWS Lambda assigned opaque identifier for the mapping.

esmcLastProcessingResult :: Lens' EventSourceMappingConfiguration (Maybe Text) Source #

The result of the last AWS Lambda invocation of your Lambda function.

esmcBatchSize :: Lens' EventSourceMappingConfiguration (Maybe Natural) Source #

The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records.

esmcStateTransitionReason :: Lens' EventSourceMappingConfiguration (Maybe Text) Source #

The reason the event source mapping is in its current state. It is either user-requested or an AWS Lambda-initiated state transition.

esmcLastModified :: Lens' EventSourceMappingConfiguration (Maybe UTCTime) Source #

The UTC time string indicating the last time the event mapping was updated.