Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data LambdaOptions = LambdaOptions {}
- configureLambda :: Q [Dec]
- returnAndFail :: ToJSON a => Text -> a -> IO ()
- returnAndSucceed :: ToJSON a => Text -> a -> IO ()
- decodeObj :: FromJSON a => Text -> a
- getRecord :: (MonadIO io, ParseRecord a) => Text -> io a
Documentation
data LambdaOptions Source #
LambdaOptions | |
|
Instances
Generic LambdaOptions Source # | |
Defined in Aws.Lambda.Configuration type Rep LambdaOptions :: Type -> Type # from :: LambdaOptions -> Rep LambdaOptions x # to :: Rep LambdaOptions x -> LambdaOptions # | |
ParseRecord LambdaOptions Source # | |
Defined in Aws.Lambda.Configuration | |
type Rep LambdaOptions Source # | |
Defined in Aws.Lambda.Configuration type Rep LambdaOptions = D1 (MetaData "LambdaOptions" "Aws.Lambda.Configuration" "aws-lambda-haskell-runtime-1.0.7-1paB3GJJFXWLEOEtfNGJX5" False) (C1 (MetaCons "LambdaOptions" PrefixI True) ((S1 (MetaSel (Just "eventObject") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "contextObject") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) :*: (S1 (MetaSel (Just "functionHandler") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "executionUuid") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))) |
configureLambda :: Q [Dec] Source #
:: (MonadIO io, ParseRecord a) | |
=> Text | Program description |
-> io a |
Marshal any value that implements ParseRecord
from the command line
If you need to modify the top-level ParserInfo
or ParserPrefs
use the getRecordWith
function.