serverless-haskell-0.12.2: Deploying Haskell code onto AWS Lambda using Serverless

Safe HaskellNone
LanguageHaskell2010

AWSLambda.Events.SQSEvent

Description

 
Synopsis

Documentation

data SQSMessage body Source #

Instances
Eq body => Eq (SQSMessage body) Source # 
Instance details

Defined in AWSLambda.Events.SQSEvent

Methods

(==) :: SQSMessage body -> SQSMessage body -> Bool #

(/=) :: SQSMessage body -> SQSMessage body -> Bool #

Show body => Show (SQSMessage body) Source # 
Instance details

Defined in AWSLambda.Events.SQSEvent

Methods

showsPrec :: Int -> SQSMessage body -> ShowS #

show :: SQSMessage body -> String #

showList :: [SQSMessage body] -> ShowS #

Generic (SQSMessage body) Source # 
Instance details

Defined in AWSLambda.Events.SQSEvent

Associated Types

type Rep (SQSMessage body) :: Type -> Type #

Methods

from :: SQSMessage body -> Rep (SQSMessage body) x #

to :: Rep (SQSMessage body) x -> SQSMessage body #

FromText message => FromJSON (SQSMessage message) Source # 
Instance details

Defined in AWSLambda.Events.SQSEvent

Methods

parseJSON :: Value -> Parser (SQSMessage message) #

parseJSONList :: Value -> Parser [SQSMessage message] #

type Rep (SQSMessage body) Source # 
Instance details

Defined in AWSLambda.Events.SQSEvent

sqsmMessageId :: forall body. Lens' (SQSMessage body) Text Source #

sqsmMd5OfBody :: forall body. Lens' (SQSMessage body) Text Source #

sqsmEventSource :: forall body. Lens' (SQSMessage body) Text Source #

sqsmBody :: forall body body. Lens (SQSMessage body) (SQSMessage body) (TextValue body) (TextValue body) Source #

sqsmAwsRegion :: forall body. Lens' (SQSMessage body) Region Source #

sqsMessages :: Traversal (SQSEvent message) (SQSEvent message') message message' Source #

A Traversal to get messages from an SQSEvent

sqsEmbedded :: Traversal (SQSEvent (Embedded v)) (SQSEvent (Embedded v')) v v' Source #

A Traversal to get embedded JSON values from an SQSEvent

traverseSqs :: (FromJSON a, Applicative m) => (a -> m ()) -> SQSEvent (Embedded a) -> m () Source #

Traverse all the messages in an SQS event

sqsMain :: (FromJSON a, MonadCatch m, MonadIO m) => (a -> m ()) -> m () Source #

A specialised version of the lambdaMain entry-point for handling individual SQS messages