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

Function handler

example/functions/src/v2.js:5–23  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected