List of usage examples for com.amazonaws.services.datapipeline.model CreatePipelineResult getPipelineId
public String getPipelineId()
The ID that AWS Data Pipeline assigns the newly created pipeline.
From source file:com.shazam.dataengineering.pipelinebuilder.AWSProxy.java
License:Apache License
public String createPipeline(String name, String description) throws DeploymentException { try {// w ww .j av a2s.c o m CreatePipelineRequest request = new CreatePipelineRequest().withName(name).withDescription(description) .withUniqueId(UUID.randomUUID().toString()); // TODO persist through retries? CreatePipelineResult result = client.createPipeline(request); return result.getPipelineId(); } catch (RuntimeException e) { throw new DeploymentException(e); } }