Interface: AwsLambdaHttpEvent
Interface: AwsLambdaHttpEvent
Represents the structure of an AWS Lambda HTTP event.
This interface defines the standard properties of an HTTP event in AWS Lambda, including headers, query parameters, the request context, and other metadata.
Extends
Record
<string
,unknown
>
Indexable
[key: string]: unknown
Properties
body?
optional body: unknown;
The body of the HTTP request.
encoding?
optional encoding: string;
The encoding format of the body, such as base64
.
headers
headers: Record<string, string>;
The headers of the HTTP request as key-value pairs.
httpMethod?
optional httpMethod: string;
The HTTP method of the request (e.g., GET
, POST
).
isBase64Encoded?
optional isBase64Encoded: boolean;
Indicates whether the request body is base64-encoded.
path?
optional path: string;
The path of the HTTP request.
queryStringParameters?
optional queryStringParameters: Record<string, string>;
The query string parameters included in the request.
rawPath?
optional rawPath: string;
The raw path of the HTTP request, as sent by the client.
requestContext?
optional requestContext: object;
The context of the request, including identity and HTTP metadata.
http?
optional http: object;
http.method?
optional method: string;
http.sourceIp?
optional sourceIp: string;
httpMethod?
optional httpMethod: string;
identity?
optional identity: object;
identity.sourceIp?
optional sourceIp: string;