Type Alias LambdaFunctionUrlEvent
LambdaFunctionUrlEvent: {
body?: string;
cookies?: string[];
headers: Record<string, string>;
isBase64Encoded: boolean;
pathParameters?: null | Record<string, string>;
queryStringParameters?: Record<string, string>;
rawPath: string;
rawQueryString: string;
requestContext: {
accountId: string;
apiId: string;
authentication?:
| null
| {
clientCert?: {
clientCertPem: string;
issuerDN: string;
serialNumber: string;
subjectDN: string;
validity: { notAfter: string; notBefore: string };
};
};
authorizer?: {
iam?: {
accessKey?: string;
accountId?: string;
callerId?: string;
cognitoIdentity?: | null
| { amr: string[]; identityId: string; identityPoolId: string };
principalOrgId?: null | string;
userArn?: string;
userId?: string;
};
jwt?: { claims: Record<string, any>; scopes: null | string[] };
lambda?: null | Record<string, any>;
};
domainName: string;
domainPrefix: string;
http: {
method: | "GET"
| "POST"
| "PUT"
| "PATCH"
| "DELETE"
| "HEAD"
| "OPTIONS";
path: string;
protocol: string;
sourceIp: string;
userAgent: string;
};
requestId: string;
routeKey: string;
stage: string;
time: string;
timeEpoch: number;
};
routeKey: string;
stageVariables?: null
| Record<string, string>;
version: string;
}
Type declaration
Optional
body?: string
Optional
cookies?: string[]
headers: Record<string, string>
isBase64Encoded: boolean
Optional
pathParameters?: null | Record<string, string>
Optional
queryStringParameters?: Record<string, string>
rawPath: string
rawQueryString: string
requestContext: {
accountId: string;
apiId: string;
authentication?:
| null
| {
clientCert?: {
clientCertPem: string;
issuerDN: string;
serialNumber: string;
subjectDN: string;
validity: { notAfter: string; notBefore: string };
};
};
authorizer?: {
iam?: {
accessKey?: string;
accountId?: string;
callerId?: string;
cognitoIdentity?: | null
| { amr: string[]; identityId: string; identityPoolId: string };
principalOrgId?: null | string;
userArn?: string;
userId?: string;
};
jwt?: { claims: Record<string, any>; scopes: null | string[] };
lambda?: null | Record<string, any>;
};
domainName: string;
domainPrefix: string;
http: {
method: | "GET"
| "POST"
| "PUT"
| "PATCH"
| "DELETE"
| "HEAD"
| "OPTIONS";
path: string;
protocol: string;
sourceIp: string;
userAgent: string;
};
requestId: string;
routeKey: string;
stage: string;
time: string;
timeEpoch: number;
}
routeKey: string
Optional
stageVariables?: null | Record<string, string>
version: string
Zod schema for Lambda Function URL follows the API Gateway HTTP APIs Payload Format Version 2.0.
Keys related to API Gateway features not available in Function URL use a sentinel value (e.g.
routeKey
,stage
).