Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- withLambdaBackend :: LambdaBackendOptions -> (Backend -> IO a) -> IO a
- data LambdaBackendOptions
- lambdaBackendOptions :: Text -> LambdaBackendOptions
- lboPrefix :: Lens' LambdaBackendOptions Text
- lboMemory :: Lens' LambdaBackendOptions Int
- lboMaxConcurrentInvocations :: Lens' LambdaBackendOptions Int
- lboMaxConcurrentExecutions :: Lens' LambdaBackendOptions Int
- lboMaxConcurrentDownloads :: Lens' LambdaBackendOptions Int
- lboKeepStack :: Lens' LambdaBackendOptions Bool
Usage
withLambdaBackend :: LambdaBackendOptions -> (Backend -> IO a) -> IO a Source #
Provides a Backend
using AWS Lambda functions.
Options
data LambdaBackendOptions Source #
Options required for creating a Lambda backend.
:: Text | Name of the S3 bucket to store the deployment archive in. |
-> LambdaBackendOptions |
lboPrefix :: Lens' LambdaBackendOptions Text Source #
Prefix to the deployment archive and the CloudFormation stack.
lboMaxConcurrentInvocations :: Lens' LambdaBackendOptions Int Source #
Maximum number of concurrent "invoke" calls to AWS API to trigger executions.
lboMaxConcurrentExecutions :: Lens' LambdaBackendOptions Int Source #
Maximum number of concurrently executing Lambda functions.
lboMaxConcurrentDownloads :: Lens' LambdaBackendOptions Int Source #
If the size of the return value from your function is larger than 200 kilobytes, we fetch the results via S3. This parameter sets the maximum number of concurrent downloads from S3.
lboKeepStack :: Lens' LambdaBackendOptions Bool Source #
Whether to keep the CloudFormation stack after the withLambdaBackend
call.
Useful for debugging.