From 5153ba842e30b17812bd72a90b774951c8075884 Mon Sep 17 00:00:00 2001 From: vighnesh153 Date: Sat, 9 Nov 2024 14:53:23 +0530 Subject: [PATCH] feat: add s3ObjectsEventListener lambda conf --- tools-deno/tools/deno.json | 2 +- tools-deno/tools/src/vighnesh153/aws_config.ts | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/tools-deno/tools/deno.json b/tools-deno/tools/deno.json index 5a49a634..21e2eea0 100644 --- a/tools-deno/tools/deno.json +++ b/tools-deno/tools/deno.json @@ -1,6 +1,6 @@ { "name": "@vighnesh153/tools", - "version": "0.1.12", + "version": "0.1.13", "exports": { ".": "./src/mod.ts", "./compiler_fe": "./src/compiler_fe/mod.ts", diff --git a/tools-deno/tools/src/vighnesh153/aws_config.ts b/tools-deno/tools/src/vighnesh153/aws_config.ts index 9715a361..f9832e80 100644 --- a/tools-deno/tools/src/vighnesh153/aws_config.ts +++ b/tools-deno/tools/src/vighnesh153/aws_config.ts @@ -47,6 +47,7 @@ const LambdaFunctionNameList = [ "initiateGoogleLogin", "initiateLogout", "playground", + "s3ObjectsEventListener", ] as const; export type LambdaFunctionName = (typeof LambdaFunctionNameList)[number]; @@ -67,37 +68,53 @@ export const LambdaFunctionConfig: { name: key; method: LambdaMethodType; authRequired: boolean; + /** + * whether this function can be called using HTTP + */ + callableByHttp: boolean; }; } = { createUploadPresignedUrl: { name: "createUploadPresignedUrl", method: "post", authRequired: true, + callableByHttp: true, }, getUser: { name: "getUser", method: "get", authRequired: false, + callableByHttp: true, }, googleAuthCallback: { name: "googleAuthCallback", method: "get", authRequired: false, + callableByHttp: true, }, initiateGoogleLogin: { name: "initiateGoogleLogin", method: "get", authRequired: false, + callableByHttp: true, }, initiateLogout: { name: "initiateLogout", method: "get", authRequired: false, + callableByHttp: true, }, playground: { name: "playground", method: "get", authRequired: false, + callableByHttp: true, + }, + s3ObjectsEventListener: { + name: "s3ObjectsEventListener", + method: "post", + authRequired: false, + callableByHttp: false, }, };