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 Resposta
0
Resposta aceita

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
ESPECIALISTA
Alex_T
respondido há 10 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas