MCPcopy Create free account
hub / github.com/awslabs/llrt / handler

Function handler

example/functions/src/v3-lib.mjs:7–21  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

5const docClient = DynamoDBDocumentClient.from(client);
6
7export const handler = async (event) => {
8 await docClient.send(
9 new PutCommand({
10 TableName: process.env.TABLE_NAME,
11 Item: {
12 id: Math.random().toString(36).substring(2),
13 content: JSON.stringify(event),
14 },
15 })
16 );
17 return {
18 statusCode: 200,
19 body: "OK",
20 };
21};

Callers

nothing calls this directly

Calls 2

toStringMethod · 0.65
sendMethod · 0.45

Tested by

no test coverage detected