Module lambda

Module lambda 

Source
Expand description

A wrapper around the lambda_runtime crate.

This wrapper provides wrappers to make it easier to write Lambda functions which consume messages from various events, such as an SQS queue configured with an event source mapping, or a step function. It also provides mechanisms for running message handlers locally, without the full AWS Lambda environment.

Structs§

S3Event
S3Event which wrap an array of S3EventRecord
SqsEvent
Re-export from aws_lambda_events::event::sqs::SqsEvent, with RunnableEventType implemented. The Event sent to Lambda from SQS. Contains 1 or more individual SQS Messages

Traits§

LambdaContext
A trait of the Context type, required when using run_message_handler to execute the message handler.
LocalContext
A trait of the Context type, required when using run_local_handler to execute the message handler.
RunnableEventType
A trait that allows a type to be used as the EventType trait of a LambdaContext.
StepFunctionEvent
The StepFunctionEvent trait allows any deserializable struct to be used as the EventType for a LambdaContext.

Functions§

run_local_handler
Executes a message handler against the message provided by the LocalContext.
run_message_handler
Executes a message handler against all the messages received in a batch from an SQS event source mapping.
running_on_lambda
Determine whether the code is being executed within an AWS Lambda.

Type Aliases§

Error
Re-export of lambda_runtime::Error.