Pipeline
Provides an Elastic Transcoder pipeline resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const bar = new aws.elastictranscoder.Pipeline("bar", {
inputBucket: inputBucket.id,
name: "aws_elastictranscoder_pipeline_my_test_",
role: testRole.arn,
contentConfig: {
bucket: contentBucket.id,
storageClass: "Standard",
},
thumbnailConfig: {
bucket: thumbBucket.id,
storageClass: "Standard",
},
});
import pulumi
import pulumi_aws as aws
bar = aws.elastictranscoder.Pipeline("bar",
input_bucket=input_bucket["id"],
name="aws_elastictranscoder_pipeline_my_test_",
role=test_role["arn"],
content_config={
"bucket": content_bucket["id"],
"storage_class": "Standard",
},
thumbnail_config={
"bucket": thumb_bucket["id"],
"storage_class": "Standard",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var bar = new Aws.ElasticTranscoder.Pipeline("bar", new()
{
InputBucket = inputBucket.Id,
Name = "aws_elastictranscoder_pipeline_my_test_",
Role = testRole.Arn,
ContentConfig = new Aws.ElasticTranscoder.Inputs.PipelineContentConfigArgs
{
Bucket = contentBucket.Id,
StorageClass = "Standard",
},
ThumbnailConfig = new Aws.ElasticTranscoder.Inputs.PipelineThumbnailConfigArgs
{
Bucket = thumbBucket.Id,
StorageClass = "Standard",
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/elastictranscoder"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := elastictranscoder.NewPipeline(ctx, "bar", &elastictranscoder.PipelineArgs{
InputBucket: pulumi.Any(inputBucket.Id),
Name: pulumi.String("aws_elastictranscoder_pipeline_my_test_"),
Role: pulumi.Any(testRole.Arn),
ContentConfig: &elastictranscoder.PipelineContentConfigArgs{
Bucket: pulumi.Any(contentBucket.Id),
StorageClass: pulumi.String("Standard"),
},
ThumbnailConfig: &elastictranscoder.PipelineThumbnailConfigArgs{
Bucket: pulumi.Any(thumbBucket.Id),
StorageClass: pulumi.String("Standard"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.elastictranscoder.Pipeline;
import com.pulumi.aws.elastictranscoder.PipelineArgs;
import com.pulumi.aws.elastictranscoder.inputs.PipelineContentConfigArgs;
import com.pulumi.aws.elastictranscoder.inputs.PipelineThumbnailConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var bar = new Pipeline("bar", PipelineArgs.builder()
.inputBucket(inputBucket.id())
.name("aws_elastictranscoder_pipeline_my_test_")
.role(testRole.arn())
.contentConfig(PipelineContentConfigArgs.builder()
.bucket(contentBucket.id())
.storageClass("Standard")
.build())
.thumbnailConfig(PipelineThumbnailConfigArgs.builder()
.bucket(thumbBucket.id())
.storageClass("Standard")
.build())
.build());
}
}
resources:
bar:
type: aws:elastictranscoder:Pipeline
properties:
inputBucket: ${inputBucket.id}
name: aws_elastictranscoder_pipeline_my_test_
role: ${testRole.arn}
contentConfig:
bucket: ${contentBucket.id}
storageClass: Standard
thumbnailConfig:
bucket: ${thumbBucket.id}
storageClass: Standard
Import
Using pulumi import
, import Elastic Transcoder pipelines using the id
. For example:
$ pulumi import aws:elastictranscoder/pipeline:Pipeline basic_pipeline 1407981661351-cttk8b
Properties
The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.
The ContentConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. (documented below)
The permissions for the content_config
object. (documented below)
The Amazon S3 bucket in which you saved the media files that you want to transcode and the graphics that you want to use as watermarks.
The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status. (documented below)
The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files.
The ThumbnailConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. (documented below)
The permissions for the thumbnail_config
object. (documented below) The content_config
object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists: which bucket to use, and the storage class that you want to assign to the files. If you specify values for content_config
, you must also specify values for thumbnail_config
. If you specify values for content_config
and thumbnail_config
, omit the output_bucket
object.