Programmatically create a data flow file in Sagemaker Studio

0

I am using Sagemaker Studio and would like to create a flow file with Python, rather than using the UI. When I create a flow file using the UI and then open it in the editor, I can see all of the parameters, including my input source query (Athena). The only components that I don't understand are the node_id values.

Is this possible? How are the node_id values generated?

1 Antwort
0
Akzeptierte Antwort

I've played around with programmatically editing .flow files in the past, and believe that so long as you choose something that's 1) unique within the file and 2) not containing any unsupported character types, the flow should still work fine.

If I remember correctly, in Python something like the below with the built-in standard uuid library should produce usable IDs in a very similar format:

from uuid import uuid4
node_id = str(uuid4())
AWS
EXPERTE
Alex_T
beantwortet vor 10 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen