Example usage for com.amazonaws.services.elastictranscoder AmazonElasticTranscoder deletePipeline

List of usage examples for com.amazonaws.services.elastictranscoder AmazonElasticTranscoder deletePipeline

Introduction

In this page you can find the example usage for com.amazonaws.services.elastictranscoder AmazonElasticTranscoder deletePipeline.

Prototype

DeletePipelineResult deletePipeline(DeletePipelineRequest deletePipelineRequest);

Source Link

Document

The DeletePipeline operation removes a pipeline.

Usage

From source file:org.alanwilliamson.amazon.transcoder.pipeline.Delete.java

License:Open Source License

public cfData execute(cfSession _session, cfArgStructData argStruct) throws cfmRunTimeException {
    AmazonKey amazonKey = getAmazonKey(_session, argStruct);
    AmazonElasticTranscoder et = getAmazonElasticTranscoder(amazonKey);

    String pipelineid = getNamedStringParam(argStruct, "pipelineid", null);
    if (pipelineid == null)
        throwException(_session, "Please specify a pipelineid");

    try {//w  w  w.j a  v a  2 s  .c  o m
        et.deletePipeline(new DeletePipelineRequest().withId(pipelineid));
    } catch (Exception e) {
        throwException(_session, "AmazonElasticTranscoder: " + e.getMessage());
    }

    return cfBooleanData.TRUE;
}