Search code examples
amazon-web-servicesamazon-data-pipelineaws-java-sdk

AWS Data Pipeline - Java SDK - How to put a pipeline definition from JSON file


I have an AWS data pipeline definition in JSON format

Using Java SDK I have created an empty pipeline and now I would like to use my JSON to put the pipeline definition. Basically I would like to create a PutPipelineDefinitionRequest (http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/datapipeline/model/PutPipelineDefinitionRequest.html) without creating the PipelineObjects one by one.

How can I do that? Is it possible?

Thanks!


Solution

  • Currently it is not possible to upload the JSON as the pipeline definition. You can however iterate over the JSON and create the array of pipeline objects.