| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Aws.Lambda.Runtime
Documentation
type LByteString = ByteString Source #
type ByteString = ByteString Source #
data RuntimeError Source #
Constructors
| EnvironmentVariableNotSet Text | |
| ApiConnectionError | |
| ApiHeaderNotSet Text | |
| ParseError Text Text | |
| InvocationError Text |
Instances
| Show RuntimeError Source # | |
Defined in Aws.Lambda.Runtime Methods showsPrec :: Int -> RuntimeError -> ShowS # show :: RuntimeError -> String # showList :: [RuntimeError] -> ShowS # | |
| ToJSON RuntimeError Source # | |
Defined in Aws.Lambda.Runtime Methods toJSON :: RuntimeError -> Value # toEncoding :: RuntimeError -> Encoding # toJSONList :: [RuntimeError] -> Value # toEncodingList :: [RuntimeError] -> Encoding # | |
| Exception RuntimeError Source # | |
Defined in Aws.Lambda.Runtime Methods toException :: RuntimeError -> SomeException # fromException :: SomeException -> Maybe RuntimeError # displayException :: RuntimeError -> String # | |
Constructors
| Context | |
Fields
| |
Instances
newtype LambdaResult Source #
Constructors
| LambdaResult Text |
nextInvocationEndpoint :: Text -> String Source #
getApiData :: Text -> App (Response LByteString) Source #
extractHeader :: Response LByteString -> Text -> Text Source #
extractIntHeader :: Response LByteString -> Text -> App Int Source #
extractBody :: Response LByteString -> Text Source #
propagateXRayTrace :: Text -> App () Source #
publishResult :: Context -> Text -> LambdaResult -> App () Source #
publishError :: Context -> Text -> RuntimeError -> App () Source #
lambdaRunner :: App () Source #