List of usage examples for com.amazonaws.services.datapipeline.model PutPipelineDefinitionResult isErrored
public Boolean isErrored()
Indicates whether there were validation errors, and the pipeline definition is stored but cannot be activated until you correct the pipeline and call PutPipelineDefinition to commit the corrected pipeline.
From source file:com.shazam.dataengineering.pipelinebuilder.AWSProxy.java
License:Apache License
public boolean putPipeline(String pipelineId, PipelineObject pipeline) throws DeploymentException { try {//from ww w . ja va 2s .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); } }