MCPcopy Create free account
hub / github.com/awsdocs/aws-lambda-developer-guide / handler

Function handler

sample-apps/layer-nodejs/function-ts/index.ts:20–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18];
19
20export const handler: Handler<any, UserResult> = async (): Promise<UserResult> => {
21
22 let out = _.findLastIndex(users, (user: User) => { return user.user == 'Pat'; });
23 const response = {
24 statusCode: 200,
25 body: JSON.stringify(out + ", " + users[out].user),
26 };
27 return response;
28};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected