List of usage examples for com.amazonaws.services.datapipeline.model PutPipelineDefinitionRequest PutPipelineDefinitionRequest
PutPipelineDefinitionRequest
From source file:com.shazam.dataengineering.pipelinebuilder.AWSProxy.java
License:Apache License
public boolean putPipeline(String pipelineId, PipelineObject pipeline) throws DeploymentException { try {//from w w w. j a v a2s.c o m PutPipelineDefinitionRequest request = new PutPipelineDefinitionRequest().withPipelineId(pipelineId) .withPipelineObjects(pipeline.getAWSObjects()); PutPipelineDefinitionResult result = client.putPipelineDefinition(request); return !result.isErrored(); } catch (RuntimeException e) { throw new DeploymentException(e); } }