| Copyright | (c) Nike Inc. 2018 |
|---|---|
| License | BSD3 |
| Maintainer | nathan.fairhurst@nike.com, fernando.freire@nike.com |
| Stability | stable |
| Safe Haskell | None |
| Language | Haskell2010 |
AWS.Lambda.Context
Description
Synopsis
- data ClientApplication = ClientApplication {}
- data ClientContext = ClientContext {
- client :: ClientApplication
- custom :: Map Text Text
- environment :: Map Text Text
- data CognitoIdentity = CognitoIdentity {
- identityId :: Text
- identityPoolId :: Text
- data LambdaContext = LambdaContext {}
- getRemainingTime :: MonadIO m => LambdaContext -> m DiffTime
- class HasLambdaContext r where
- withContext :: LambdaContext -> r -> r
- defConfig :: DefConfig a => a
- runReaderTLambdaContext :: ReaderT LambdaContext m a -> m a
Documentation
data ClientApplication Source #
Constructors
| ClientApplication | |
Fields
| |
Instances
data ClientContext Source #
Constructors
| ClientContext | |
Fields
| |
Instances
data CognitoIdentity Source #
Constructors
| CognitoIdentity | |
Fields
| |
Instances
data LambdaContext Source #
Constructors
| LambdaContext | |
Fields
| |
Instances
getRemainingTime :: MonadIO m => LambdaContext -> m DiffTime Source #
class HasLambdaContext r where Source #
Deprecated: HasLambdaContext will be removed along with the original mRuntimeWithContext. This utility is no longer necessary without it.
Methods
withContext :: LambdaContext -> r -> r Source #
Instances
| HasLambdaContext LambdaContext Source # | |
Defined in AWS.Lambda.Context Methods withContext :: LambdaContext -> LambdaContext -> LambdaContext Source # | |
runReaderTLambdaContext :: ReaderT LambdaContext m a -> m a Source #
Deprecated: runReaderTLambdaContext will be removed along with the original mRuntimeWithContext. This particular approach was problematic, in that it required a default LambdaContext, when in reality, there is no valid instance.
Helper for using arbitrary monads with only the LambdaContext in its Reader