INNER CODE UNIT · TypeScript

lambdaHandler

Zeus-Labs/ZeusCloud · cdk/lib/sample-lambda/index.ts:3

export const lambdaHandler = async (event: APIGatewayEvent, context: Context): Promise<APIGatewayProxyResult> => {
    console.log(`Event: ${JSON.stringify(event, null, 2)}`);
    console.log(`Context: ${JSON.stringify(context, null, 2)}`);
    return {
        statusCode: 200,
        body: JSON.stringify({
            message: 'hello world',
        }),
    };
};

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…