Example usage for com.amazonaws.services.datapipeline.model CreatePipelineResult getPipelineId

List of usage examples for com.amazonaws.services.datapipeline.model CreatePipelineResult getPipelineId

Introduction

In this page you can find the example usage for com.amazonaws.services.datapipeline.model CreatePipelineResult getPipelineId.

Prototype


public String getPipelineId() 

Source Link

Document

The ID that AWS Data Pipeline assigns the newly created pipeline.

Usage

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);
    }
}