Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation of how custom runtime function (python) in Amplify Gen 2, can interact with Amplify Data (just like in typescript functions) #8214

Open
sofferor opened this issue Jan 23, 2025 · 0 comments

Comments

@sofferor
Copy link

Describe the content issue:
In this PR:
aws-amplify/amplify-backend#1602
Custom functions runtime was added to Amplify Gen 2.
The docs about it are in:
https://docs.amplify.aws/nextjs/build-a-backend/functions/custom-functions/#python

Can you also please add documentation about how a Python function can interact with the Amplify Data?
For example how to create/update/read/delete a table in Amplify Gen 2 Data.

In a typescript function, according to this docs:
https://docs.amplify.aws/nextjs/build-a-backend/functions/examples/create-user-profile-record/
It's possible to interact with Amplify Data using the "client" object:

Image

Is it possible to do something similar in a python function? (if yes, can you please 🙏 provide example)

If not, in a typescript function it's also possible to interact with the Amplify Data with GraphQL (as you mentioned) like this:

Image

Can you please 🙏 provide an example of how to do this in a python Amplify function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant