amazonka-lambda-0.0.5: Amazon Lambda SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.Lambda.Types

Contents

Synopsis

Service

data Lambda Source

Version 2014-11-11 of the Amazon Lambda service.

Instances

Error

data JSONError :: *

Instances

Eq JSONError 
Show JSONError 
Generic JSONError 
FromJSON JSONError 
type Rep JSONError = D1 D1JSONError (C1 C1_0JSONError ((:*:) (S1 S1_0_0JSONError (Rec0 (Maybe Text))) (S1 S1_0_1JSONError (Rec0 Text)))) 

Runtime

Mode

FunctionCodeLocation

functionCodeLocation :: FunctionCodeLocation Source

FunctionCodeLocation constructor.

The fields accessible through corresponding lenses are:

fclLocation :: Lens' FunctionCodeLocation (Maybe Text) Source

The presigned URL you can use to download the function's .zip file that you previously uploaded. The URL is valid for up to 10 minutes.

fclRepositoryType :: Lens' FunctionCodeLocation (Maybe Text) Source

The repository from which you can download the function.

FunctionConfiguration

fcCodeSize :: Lens' FunctionConfiguration (Maybe Integer) Source

The size, in bytes, of the function .zip file you uploaded.

fcConfigurationId :: Lens' FunctionConfiguration (Maybe Text) Source

A Lambda-assigned unique identifier for the current function code and related configuration.

fcDescription :: Lens' FunctionConfiguration (Maybe Text) Source

The user-provided description.

fcFunctionARN :: Lens' FunctionConfiguration (Maybe Text) Source

The Amazon Resource Name (ARN) assigned to the function.

fcHandler :: Lens' FunctionConfiguration (Maybe Text) Source

The function Lambda calls to begin executing your function.

fcLastModified :: Lens' FunctionConfiguration (Maybe UTCTime) Source

The timestamp of the last time you updated the function.

fcMemorySize :: Lens' FunctionConfiguration (Maybe Natural) Source

The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.

fcMode :: Lens' FunctionConfiguration (Maybe Mode) Source

The type of the Lambda function you uploaded.

fcRole :: Lens' FunctionConfiguration (Maybe Text) Source

The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.

fcRuntime :: Lens' FunctionConfiguration (Maybe Runtime) Source

The runtime environment for the Lambda function.

fcTimeout :: Lens' FunctionConfiguration (Maybe Natural) Source

The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

EventSourceConfiguration

escBatchSize :: Lens' EventSourceConfiguration (Maybe Int) Source

The largest number of records that AWS Lambda will POST in the invocation request to your function.

escEventSource :: Lens' EventSourceConfiguration (Maybe Text) Source

The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.

escFunctionName :: Lens' EventSourceConfiguration (Maybe Text) Source

The Lambda function to invoke when AWS Lambda detects an event on the stream.

escIsActive :: Lens' EventSourceConfiguration (Maybe Bool) Source

Indicates whether the event source mapping is currently honored. Events are only processes if IsActive is true.

escLastModified :: Lens' EventSourceConfiguration (Maybe UTCTime) Source

The UTC time string indicating the last time the event mapping was updated.

escParameters :: Lens' EventSourceConfiguration (HashMap Text Text) Source

The map (key-value pairs) defining the configuration for AWS Lambda to use when reading the event source.

escRole :: Lens' EventSourceConfiguration (Maybe Text) Source

The ARN of the IAM role (invocation role) that AWS Lambda can assume to read from the stream and invoke the function.

escStatus :: Lens' EventSourceConfiguration (Maybe Text) Source

The description of the health of the event source mapping. Valid values are: PENDING, OK, and "PROBLEM:message". Initially this staus is PENDING. When AWS Lambda begins processing events, it changes the status to OK.

escUUID :: Lens' EventSourceConfiguration (Maybe Text) Source

The AWS Lambda assigned opaque identifier for the mapping.