Skip to content

Commit

Permalink
feat: update profile lambda (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
LIEN-YUHSIANG authored Nov 11, 2023
1 parent 1083442 commit 3d51670
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/constructs/common/lambda-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@ export class ProfileProcessFunctions extends Construct {
this.getFunction = new lambda_py.PythonFunction(this, 'get-profile', {
entry: 'src/lambda/get-profile',
description: 'get user profile from the database.',
functionName: 'get-user-profile',
functionName: 'get-profile',
logRetention: logs.RetentionDays.ONE_MONTH,
memorySize: 128,
role: dynamoDBReadRole,
Expand All @@ -1342,7 +1342,7 @@ export class ProfileProcessFunctions extends Construct {
this.postFunction = new lambda_py.PythonFunction(this, 'post-profile', {
entry: 'src/lambda/post-profile',
description: 'Save user profile into the database.',
functionName: 'post-user-profile',
functionName: 'post-profile',
logRetention: logs.RetentionDays.ONE_MONTH,
memorySize: 256,
role: dynamoDBPutRole,
Expand All @@ -1357,7 +1357,7 @@ export class ProfileProcessFunctions extends Construct {
this.patchFunction = new lambda_py.PythonFunction(this, 'patch-profile', {
entry: 'src/lambda/patch-comment',
description: 'Update user profile in the database.',
functionName: 'patch-user-profile',
functionName: 'patch-profile',
logRetention: logs.RetentionDays.ONE_MONTH,
memorySize: 256,
role: dynamoDBPutRole,
Expand All @@ -1372,7 +1372,7 @@ export class ProfileProcessFunctions extends Construct {
this.deleteFunction = new lambda_py.PythonFunction(this, 'delete-profile', {
entry: 'src/lambda/delete-profile',
description: 'Delete user profile in the database.',
functionName: 'delete-user-profile',
functionName: 'delete-profile',
logRetention: logs.RetentionDays.ONE_MONTH,
memorySize: 128,
role: dynamoDBPutRole,
Expand Down

0 comments on commit 3d51670

Please sign in to comment.