From da505583a324d5afef12153c56ecc039b486c6b3 Mon Sep 17 00:00:00 2001 From: Danny Banks Date: Tue, 1 Apr 2025 08:45:35 -0700 Subject: [PATCH] Update data lambda authz guide --- .../grant-lambda-function-access-to-api/index.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/[platform]/build-a-backend/data/customize-authz/grant-lambda-function-access-to-api/index.mdx b/src/pages/[platform]/build-a-backend/data/customize-authz/grant-lambda-function-access-to-api/index.mdx index 04da21c3ebf..ea0dcba3c3d 100644 --- a/src/pages/[platform]/build-a-backend/data/customize-authz/grant-lambda-function-access-to-api/index.mdx +++ b/src/pages/[platform]/build-a-backend/data/customize-authz/grant-lambda-function-access-to-api/index.mdx @@ -120,7 +120,8 @@ When configuring Amplify with `getAmplifyDataClientConfig`, your function consum Once you have generated the client code, update the function to access the data. The following code creates a todo and then lists all todos. -```ts title="amplify/functions/data-access.ts" +```ts title="amplify/functions/data-access/handler.ts" +//... const client = generateClient(); export const handler: Handler = async (event) => {