I have a data pipeline definition in json format, and I would like to 'put' that using Boto3 in Python.
I know you can do this via the AWS CLI using put-pipeline-definition
, but Boto3 (and the AWS API) use a different format, splitting the definition into pipelineObjects
, parameterObjects
and parameterValues
.
Do I need to write code to translate from a json definition to that expected by the API/Boto? If so, is there a library that does this?
The AWS CLI has code that does this translation, so I can borrow that!
You could convert from the Data Pipeline exported JSON format to the pipelineObjects format expected by boto3 using a python function of the following form.