Class Preset
Provides an Elastic Transcoder preset resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var bar = new Aws.ElasticTranscoder.Preset("bar", new Aws.ElasticTranscoder.PresetArgs
{
Audio = new Aws.ElasticTranscoder.Inputs.PresetAudioArgs
{
AudioPackingMode = "SingleTrack",
BitRate = 96,
Channels = 2,
Codec = "AAC",
SampleRate = 44100,
},
AudioCodecOptions = new Aws.ElasticTranscoder.Inputs.PresetAudioCodecOptionsArgs
{
Profile = "AAC-LC",
},
Container = "mp4",
Description = "Sample Preset",
Thumbnails = new Aws.ElasticTranscoder.Inputs.PresetThumbnailsArgs
{
Format = "png",
Interval = 120,
MaxHeight = "auto",
MaxWidth = "auto",
PaddingPolicy = "Pad",
SizingPolicy = "Fit",
},
Video = new Aws.ElasticTranscoder.Inputs.PresetVideoArgs
{
BitRate = "1600",
Codec = "H.264",
DisplayAspectRatio = "16:9",
FixedGop = "false",
FrameRate = "auto",
KeyframesMaxDist = 240,
MaxFrameRate = "60",
MaxHeight = "auto",
MaxWidth = "auto",
PaddingPolicy = "Pad",
SizingPolicy = "Fit",
},
VideoCodecOptions =
{
{ "ColorSpaceConversionMode", "None" },
{ "InterlacedMode", "Progressive" },
{ "Level", "2.2" },
{ "MaxReferenceFrames", 3 },
{ "Profile", "main" },
},
VideoWatermarks =
{
new Aws.ElasticTranscoder.Inputs.PresetVideoWatermarkArgs
{
HorizontalAlign = "Right",
HorizontalOffset = "10px",
Id = "Test",
MaxHeight = "20%",
MaxWidth = "20%",
Opacity = "55.5",
SizingPolicy = "ShrinkToFit",
Target = "Content",
VerticalAlign = "Bottom",
VerticalOffset = "10px",
},
},
});
}
}
Inherited Members
Namespace: Pulumi.Aws.ElasticTranscoder
Assembly: Pulumi.Aws.dll
Syntax
public class Preset : CustomResource
Constructors
View SourcePreset(String, PresetArgs, CustomResourceOptions)
Create a Preset resource with the given unique name, arguments, and options.
Declaration
public Preset(string name, PresetArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| PresetArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Audio
Audio parameters object (documented below).
Declaration
public Output<PresetAudio> Audio { get; }
Property Value
| Type | Description |
|---|---|
| Output<PresetAudio> |
AudioCodecOptions
Codec options for the audio parameters (documented below)
Declaration
public Output<PresetAudioCodecOptions> AudioCodecOptions { get; }
Property Value
| Type | Description |
|---|---|
| Output<PresetAudioCodecOptions> |
Container
The container type for the output file. Valid values are flac, flv, fmp4, gif, mp3, mp4, mpg, mxf, oga, ogg, ts, and webm.
Declaration
public Output<string> Container { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Description
A description of the preset (maximum 255 characters)
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the preset. (maximum 40 characters)
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Thumbnails
Thumbnail parameters object (documented below)
Declaration
public Output<PresetThumbnails> Thumbnails { get; }
Property Value
| Type | Description |
|---|---|
| Output<PresetThumbnails> |
Type
Declaration
public Output<string> Type { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Video
Video parameters object (documented below)
Declaration
public Output<PresetVideo> Video { get; }
Property Value
| Type | Description |
|---|---|
| Output<PresetVideo> |
VideoCodecOptions
Codec options for the video parameters
Declaration
public Output<ImmutableDictionary<string, object>> VideoCodecOptions { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
VideoWatermarks
Watermark parameters for the video parameters (documented below)
Declaration
public Output<ImmutableArray<PresetVideoWatermark>> VideoWatermarks { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<PresetVideoWatermark>> |
Methods
View SourceGet(String, Input<String>, PresetState, CustomResourceOptions)
Get an existing Preset resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Preset Get(string name, Input<string> id, PresetState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| PresetState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Preset |