Skip to content

Commit

Permalink
feat: add s3ObjectsEventListener lambda conf
Browse files Browse the repository at this point in the history
  • Loading branch information
vighnesh153 committed Nov 9, 2024
1 parent f07757c commit 5153ba8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools-deno/tools/deno.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
17 changes: 17 additions & 0 deletions tools-deno/tools/src/vighnesh153/aws_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const LambdaFunctionNameList = [
"initiateGoogleLogin",
"initiateLogout",
"playground",
"s3ObjectsEventListener",
] as const;

export type LambdaFunctionName = (typeof LambdaFunctionNameList)[number];
Expand All @@ -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,
},
};

Expand Down

0 comments on commit 5153ba8

Please sign in to comment.