[amazon-data-pipeline]: can we not clone existing aws data pipeline from java sdk?

224 views Asked by At

I want to clone my existing pipeline through code, and I just had quick walk through aws data pipeline document here.

I couldnt find method to clone the existing pipeline in the SDK. Why is that? Can somebody please answer?

1

There are 1 answers

0
Vaibhav Porwal On

I think cloning a pipeline using SDK is not supported. They have a note about not supporting it through CLI on cloning a pipeline documentation:

Note You can't clone a pipeline using the command line interface (CLI).

I guess it should be the same for SDK as well.

I haven't tried this approach, but cloning an existing pipeline using SDK can be achieved as follows:

  1. Create an empty pipeline using createPipeline.
  2. Get pipeline definition of the existing pipeline that you want to clone using getPipelineDefinition.
  3. Use the fields returned in Step 2 to populate the fields of a new PutPipelineDefinitionRequest object and call putPipelineDefinition with it.