Pipeline
Provides an Elastic Transcoder pipeline resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var bar = new Aws.ElasticTranscoder.Pipeline("bar", new Aws.ElasticTranscoder.PipelineArgs
{
ContentConfig = new Aws.ElasticTranscoder.Inputs.PipelineContentConfigArgs
{
Bucket = aws_s3_bucket.Content_bucket.Bucket,
StorageClass = "Standard",
},
InputBucket = aws_s3_bucket.Input_bucket.Bucket,
Role = aws_iam_role.Test_role.Arn,
ThumbnailConfig = new Aws.ElasticTranscoder.Inputs.PipelineThumbnailConfigArgs
{
Bucket = aws_s3_bucket.Thumb_bucket.Bucket,
StorageClass = "Standard",
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/elastictranscoder"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := elastictranscoder.NewPipeline(ctx, "bar", &elastictranscoder.PipelineArgs{
ContentConfig: &elastictranscoder.PipelineContentConfigArgs{
Bucket: pulumi.String(aws_s3_bucket.Content_bucket.Bucket),
StorageClass: pulumi.String("Standard"),
},
InputBucket: pulumi.String(aws_s3_bucket.Input_bucket.Bucket),
Role: pulumi.String(aws_iam_role.Test_role.Arn),
ThumbnailConfig: &elastictranscoder.PipelineThumbnailConfigArgs{
Bucket: pulumi.String(aws_s3_bucket.Thumb_bucket.Bucket),
StorageClass: pulumi.String("Standard"),
},
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
bar = aws.elastictranscoder.Pipeline("bar",
content_config={
"bucket": aws_s3_bucket["content_bucket"]["bucket"],
"storage_class": "Standard",
},
input_bucket=aws_s3_bucket["input_bucket"]["bucket"],
role=aws_iam_role["test_role"]["arn"],
thumbnail_config={
"bucket": aws_s3_bucket["thumb_bucket"]["bucket"],
"storage_class": "Standard",
})import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const bar = new aws.elastictranscoder.Pipeline("bar", {
contentConfig: {
bucket: aws_s3_bucket_content_bucket.bucket,
storageClass: "Standard",
},
inputBucket: aws_s3_bucket_input_bucket.bucket,
role: aws_iam_role_test_role.arn,
thumbnailConfig: {
bucket: aws_s3_bucket_thumb_bucket.bucket,
storageClass: "Standard",
},
});Create a Pipeline Resource
new Pipeline(name: string, args: PipelineArgs, opts?: CustomResourceOptions);def Pipeline(resource_name, opts=None, aws_kms_key_arn=None, content_config=None, content_config_permissions=None, input_bucket=None, name=None, notifications=None, output_bucket=None, role=None, thumbnail_config=None, thumbnail_config_permissions=None, __props__=None);func NewPipeline(ctx *Context, name string, args PipelineArgs, opts ...ResourceOption) (*Pipeline, error)public Pipeline(string name, PipelineArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args PipelineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PipelineArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PipelineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Pipeline Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Pipeline resource accepts the following input properties:
- Input
Bucket string 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.
- Role string
The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to transcode jobs for this pipeline.
- Aws
Kms stringKey Arn The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.
- Content
Config PipelineContent Config Args The ContentConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. (documented below)
- Content
Config List<PipelinePermissions Content Config Permission Args> The permissions for the
content_configobject. (documented below)- Name string
The name of the pipeline. Maximum 40 characters
- Notifications
Pipeline
Notifications Args The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status. (documented below)
- Output
Bucket string The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files.
- Thumbnail
Config PipelineThumbnail Config Args The ThumbnailConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. (documented below)
- Thumbnail
Config List<PipelinePermissions Thumbnail Config Permission Args> The permissions for the
thumbnail_configobject. (documented below)
- Input
Bucket string 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.
- Role string
The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to transcode jobs for this pipeline.
- Aws
Kms stringKey Arn The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.
- Content
Config PipelineContent Config The ContentConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. (documented below)
- Content
Config []PipelinePermissions Content Config Permission The permissions for the
content_configobject. (documented below)- Name string
The name of the pipeline. Maximum 40 characters
- Notifications
Pipeline
Notifications The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status. (documented below)
- Output
Bucket string The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files.
- Thumbnail
Config PipelineThumbnail Config The ThumbnailConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. (documented below)
- Thumbnail
Config []PipelinePermissions Thumbnail Config Permission The permissions for the
thumbnail_configobject. (documented below)
- input
Bucket string 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.
- role string
The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to transcode jobs for this pipeline.
- aws
Kms stringKey Arn The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.
- content
Config PipelineContent Config The ContentConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. (documented below)
- content
Config PipelinePermissions Content Config Permission[] The permissions for the
content_configobject. (documented below)- name string
The name of the pipeline. Maximum 40 characters
- notifications
Pipeline
Notifications The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status. (documented below)
- output
Bucket string The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files.
- thumbnail
Config PipelineThumbnail Config The ThumbnailConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. (documented below)
- thumbnail
Config PipelinePermissions Thumbnail Config Permission[] The permissions for the
thumbnail_configobject. (documented below)
- input_
bucket str 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.
- role str
The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to transcode jobs for this pipeline.
- aws_
kms_ strkey_ arn The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.
- content_
config Dict[PipelineContent Config] The ContentConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. (documented below)
- content_
config_ List[Pipelinepermissions Content Config Permission] The permissions for the
content_configobject. (documented below)- name str
The name of the pipeline. Maximum 40 characters
- notifications
Dict[Pipeline
Notifications] The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status. (documented below)
- output_
bucket str The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files.
- thumbnail_
config Dict[PipelineThumbnail Config] The ThumbnailConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. (documented below)
- thumbnail_
config_ List[Pipelinepermissions Thumbnail Config Permission] The permissions for the
thumbnail_configobject. (documented below)
Outputs
All input properties are implicitly available as output properties. Additionally, the Pipeline resource produces the following output properties:
Look up an Existing Pipeline Resource
Get an existing Pipeline resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PipelineState, opts?: CustomResourceOptions): Pipelinestatic get(resource_name, id, opts=None, arn=None, aws_kms_key_arn=None, content_config=None, content_config_permissions=None, input_bucket=None, name=None, notifications=None, output_bucket=None, role=None, thumbnail_config=None, thumbnail_config_permissions=None, __props__=None);func GetPipeline(ctx *Context, name string, id IDInput, state *PipelineState, opts ...ResourceOption) (*Pipeline, error)public static Pipeline Get(string name, Input<string> id, PipelineState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Arn string
- Aws
Kms stringKey Arn The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.
- Content
Config PipelineContent Config Args The ContentConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. (documented below)
- Content
Config List<PipelinePermissions Content Config Permission Args> The permissions for the
content_configobject. (documented below)- Input
Bucket string 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.
- Name string
The name of the pipeline. Maximum 40 characters
- Notifications
Pipeline
Notifications Args The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status. (documented below)
- Output
Bucket string The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files.
- Role string
The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to transcode jobs for this pipeline.
- Thumbnail
Config PipelineThumbnail Config Args The ThumbnailConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. (documented below)
- Thumbnail
Config List<PipelinePermissions Thumbnail Config Permission Args> The permissions for the
thumbnail_configobject. (documented below)
- Arn string
- Aws
Kms stringKey Arn The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.
- Content
Config PipelineContent Config The ContentConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. (documented below)
- Content
Config []PipelinePermissions Content Config Permission The permissions for the
content_configobject. (documented below)- Input
Bucket string 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.
- Name string
The name of the pipeline. Maximum 40 characters
- Notifications
Pipeline
Notifications The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status. (documented below)
- Output
Bucket string The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files.
- Role string
The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to transcode jobs for this pipeline.
- Thumbnail
Config PipelineThumbnail Config The ThumbnailConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. (documented below)
- Thumbnail
Config []PipelinePermissions Thumbnail Config Permission The permissions for the
thumbnail_configobject. (documented below)
- arn string
- aws
Kms stringKey Arn The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.
- content
Config PipelineContent Config The ContentConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. (documented below)
- content
Config PipelinePermissions Content Config Permission[] The permissions for the
content_configobject. (documented below)- input
Bucket string 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.
- name string
The name of the pipeline. Maximum 40 characters
- notifications
Pipeline
Notifications The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status. (documented below)
- output
Bucket string The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files.
- role string
The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to transcode jobs for this pipeline.
- thumbnail
Config PipelineThumbnail Config The ThumbnailConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. (documented below)
- thumbnail
Config PipelinePermissions Thumbnail Config Permission[] The permissions for the
thumbnail_configobject. (documented below)
- arn str
- aws_
kms_ strkey_ arn The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.
- content_
config Dict[PipelineContent Config] The ContentConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. (documented below)
- content_
config_ List[Pipelinepermissions Content Config Permission] The permissions for the
content_configobject. (documented below)- input_
bucket str 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.
- name str
The name of the pipeline. Maximum 40 characters
- notifications
Dict[Pipeline
Notifications] The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status. (documented below)
- output_
bucket str The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files.
- role str
The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to transcode jobs for this pipeline.
- thumbnail_
config Dict[PipelineThumbnail Config] The ThumbnailConfig object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. (documented below)
- thumbnail_
config_ List[Pipelinepermissions Thumbnail Config Permission] The permissions for the
thumbnail_configobject. (documented below)
Supporting Types
PipelineContentConfig
- Bucket string
The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.
- Storage
Class string The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the files and playlists that it stores in your Amazon S3 bucket.
- Bucket string
The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.
- Storage
Class string The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the files and playlists that it stores in your Amazon S3 bucket.
- bucket string
The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.
- storage
Class string The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the files and playlists that it stores in your Amazon S3 bucket.
- bucket str
The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists.
- storage_
class str The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the files and playlists that it stores in your Amazon S3 bucket.
PipelineContentConfigPermission
- Accesses List<string>
The permission that you want to give to the AWS user that you specified in
content_config_permissions.grantee- Grantee string
The AWS user or group that you want to have access to transcoded files and playlists.
- Grantee
Type string Specify the type of value that appears in the
content_config_permissions.granteeobject. Valid values areCanonical,EmailorGroup.
- Accesses []string
The permission that you want to give to the AWS user that you specified in
content_config_permissions.grantee- Grantee string
The AWS user or group that you want to have access to transcoded files and playlists.
- Grantee
Type string Specify the type of value that appears in the
content_config_permissions.granteeobject. Valid values areCanonical,EmailorGroup.
- accesses string[]
The permission that you want to give to the AWS user that you specified in
content_config_permissions.grantee- grantee string
The AWS user or group that you want to have access to transcoded files and playlists.
- grantee
Type string Specify the type of value that appears in the
content_config_permissions.granteeobject. Valid values areCanonical,EmailorGroup.
- accesses List[str]
The permission that you want to give to the AWS user that you specified in
content_config_permissions.grantee- grantee str
The AWS user or group that you want to have access to transcoded files and playlists.
- grantee
Type str Specify the type of value that appears in the
content_config_permissions.granteeobject. Valid values areCanonical,EmailorGroup.
PipelineNotifications
- Completed string
The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline.
- Error string
The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition while processing a job in this pipeline.
- Progressing string
The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process a job in this pipeline.
- Warning string
The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition while processing a job in this pipeline.
- Completed string
The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline.
- Error string
The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition while processing a job in this pipeline.
- Progressing string
The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process a job in this pipeline.
- Warning string
The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition while processing a job in this pipeline.
- completed string
The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline.
- error string
The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition while processing a job in this pipeline.
- progressing string
The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process a job in this pipeline.
- warning string
The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition while processing a job in this pipeline.
- completed str
The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline.
- error str
The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition while processing a job in this pipeline.
- progressing str
The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process a job in this pipeline.
- warning str
The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition while processing a job in this pipeline.
PipelineThumbnailConfig
- Bucket string
The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.
- Storage
Class string The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket.
- Bucket string
The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.
- Storage
Class string The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket.
- bucket string
The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.
- storage
Class string The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket.
- bucket str
The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files.
- storage_
class str The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket.
PipelineThumbnailConfigPermission
- Accesses List<string>
The permission that you want to give to the AWS user that you specified in
thumbnail_config_permissions.grantee.- Grantee string
The AWS user or group that you want to have access to thumbnail files.
- Grantee
Type string Specify the type of value that appears in the
thumbnail_config_permissions.granteeobject.
- Accesses []string
The permission that you want to give to the AWS user that you specified in
thumbnail_config_permissions.grantee.- Grantee string
The AWS user or group that you want to have access to thumbnail files.
- Grantee
Type string Specify the type of value that appears in the
thumbnail_config_permissions.granteeobject.
- accesses string[]
The permission that you want to give to the AWS user that you specified in
thumbnail_config_permissions.grantee.- grantee string
The AWS user or group that you want to have access to thumbnail files.
- grantee
Type string Specify the type of value that appears in the
thumbnail_config_permissions.granteeobject.
- accesses List[str]
The permission that you want to give to the AWS user that you specified in
thumbnail_config_permissions.grantee.- grantee str
The AWS user or group that you want to have access to thumbnail files.
- grantee
Type str Specify the type of value that appears in the
thumbnail_config_permissions.granteeobject.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.