File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
src/pages/[platform]/build-a-backend
data/customize-authz/grant-lambda-function-access-to-api
functions/examples/create-user-profile-record Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,12 @@ export const handler = async (event) => {
115115}
116116```
117117
118+ <Callout warning >
119+ When configuring Amplify with ` getAmplifyDataClientConfig ` , your function consumes schema information from an S3 bucket
120+ created during backend deployment with grants for the access your function need to use it. Any changes to this
121+ bucket outside of backend deployment may break your function.
122+ </Callout >
123+
118124Once you have generated the client code, update the function to access the data. The following code creates a todo and then lists all todos.
119125
120126``` ts title="amplify/functions/data-access.ts"
Original file line number Diff line number Diff line change @@ -122,6 +122,12 @@ export const handler: PostConfirmationTriggerHandler = async (event) => {
122122
123123```
124124
125+ <Callout warning >
126+ When configuring Amplify with ` getAmplifyDataClientConfig ` , your function consumes schema information from an S3 bucket
127+ created during backend deployment with grants for the access your function need to use it. Any changes to this
128+ bucket outside of backend deployment may break your function.
129+ </Callout >
130+
125131
126132Lastly, set the newly created Function resource on your auth resource:
127133
You can’t perform that action at this time.
0 commit comments