distributed-dataset-aws-0.0.1.0: AWS backends for distributed-dataset.
Safe HaskellNone
LanguageHaskell2010

Control.Distributed.Fork.AWS

Contents

Synopsis

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.

lambdaBackendOptions Source #

Arguments

:: 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.

lboMemory :: Lens' LambdaBackendOptions Int Source #

Desired memory for the Lambda functions.

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.