We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc5d987 commit f5f6616Copy full SHA for f5f6616
src/pages/[platform]/build-a-backend/data/customize-authz/grant-lambda-function-access-to-api/index.mdx
@@ -98,9 +98,9 @@ In the handler file for your function, configure the Amplify data client
98
99
```ts title="amplify/functions/data-access/handler.ts"
100
import type { Handler } from 'aws-lambda';
101
+import { type Schema } from '../../data/resource';
102
import { Amplify } from 'aws-amplify';
103
import { generateClient } from 'aws-amplify/data';
-import { Schema } from '../../data/resource';
104
import { getAmplifyDataClientConfig } from '@aws-amplify/backend/function/runtime';
105
import { env } from '$amplify/env/<function-name>'; // replace with your function name
106
0 commit comments