Skip to content

Commit 17ae24e

Browse files
authored
Update data lambda authz guide (#8308)
1 parent eafcbdc commit 17ae24e

File tree

1 file changed

+2
-1
lines changed
  • src/pages/[platform]/build-a-backend/data/customize-authz/grant-lambda-function-access-to-api

1 file changed

+2
-1
lines changed

src/pages/[platform]/build-a-backend/data/customize-authz/grant-lambda-function-access-to-api/index.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ When configuring Amplify with `getAmplifyDataClientConfig`, your function consum
120120

121121
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.
122122

123-
```ts title="amplify/functions/data-access.ts"
123+
```ts title="amplify/functions/data-access/handler.ts"
124+
//...
124125
const client = generateClient<Schema>();
125126

126127
export const handler: Handler = async (event) => {

0 commit comments

Comments
 (0)