使用Boto3放置json数据管道定义 [英] Put json data pipeline definition using Boto3

查看:83
本文介绍了使用Boto3放置json数据管道定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个json格式的数据管道定义,我想在Python中使用Boto3来放入".

I have a data pipeline definition in json format, and I would like to 'put' that using Boto3 in Python.

我知道您可以使用 AWS API )使用其他格式,将定义分为pipelineObjectsparameterObjectsparameterValues.

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.

我是否需要编写代码以将json定义转换为API/Boto期望的定义?如果是这样,有没有图书馆可以这样做?

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?

推荐答案

AWS CLI具有

The AWS CLI has code that does this translation, so I can borrow that!

这篇关于使用Boto3放置json数据管道定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆