Module lambda

Source
Available on crate feature aws-lambda only.
Expand description

The [lambda_http] types included in http::Requests when LambdaHandler is used. Each are given a FromParts implementation for easy use within handlers.

Structsยง

ApiGatewayProxyRequestContext
ApiGatewayProxyRequestContext contains the information to identify the AWS account and resources invoking the Lambda function. It also includes Cognito identity information for the caller.
ApiGatewayV2httpRequestContext
ApiGatewayV2httpRequestContext contains the information to identify the AWS account and resources invoking the Lambda function.
Context
The Lambda function execution context. The values in this struct are populated using the Lambda environment variables and the headers returned by the poll request to the Runtime APIs.
MissingContext
The Context was not found in the http::Request extensions.
MissingGatewayContextV1
The [RequestContext::ApiGatewayV1] was not found in the http::Request extensions.
MissingGatewayContextV2
The [RequestContext::ApiGatewayV2] was not found in the http::Request extensions.