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) => {