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
S3Eventwhich wrap an array ofS3EventRecord- 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§
- Lambda
Context - A trait of the
Contexttype, required when using run_message_handler to execute the message handler. - Local
Context - A trait of the
Contexttype, required when using run_local_handler to execute the message handler. - Runnable
Event Type - A trait that allows a type to be used as the
EventTypetrait of a LambdaContext. - Step
Function Event - The
StepFunctionEventtrait allows any deserializable struct to be used as the EventType for aLambdaContext.
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.