AWS Classic

v4.30.0 published on Tuesday, Nov 30, 2021 by Pulumi

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

}
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/elastictranscoder"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := elastictranscoder.NewPreset(ctx, "bar", &elastictranscoder.PresetArgs{
			Audio: &elastictranscoder.PresetAudioArgs{
				AudioPackingMode: pulumi.String("SingleTrack"),
				BitRate:          pulumi.String("96"),
				Channels:         pulumi.String("2"),
				Codec:            pulumi.String("AAC"),
				SampleRate:       pulumi.String("44100"),
			},
			AudioCodecOptions: &elastictranscoder.PresetAudioCodecOptionsArgs{
				Profile: pulumi.String("AAC-LC"),
			},
			Container:   pulumi.String("mp4"),
			Description: pulumi.String("Sample Preset"),
			Thumbnails: &elastictranscoder.PresetThumbnailsArgs{
				Format:        pulumi.String("png"),
				Interval:      pulumi.String("120"),
				MaxHeight:     pulumi.String("auto"),
				MaxWidth:      pulumi.String("auto"),
				PaddingPolicy: pulumi.String("Pad"),
				SizingPolicy:  pulumi.String("Fit"),
			},
			Video: &elastictranscoder.PresetVideoArgs{
				BitRate:            pulumi.String("1600"),
				Codec:              pulumi.String("H.264"),
				DisplayAspectRatio: pulumi.String("16:9"),
				FixedGop:           pulumi.String("false"),
				FrameRate:          pulumi.String("auto"),
				KeyframesMaxDist:   pulumi.String("240"),
				MaxFrameRate:       pulumi.String("60"),
				MaxHeight:          pulumi.String("auto"),
				MaxWidth:           pulumi.String("auto"),
				PaddingPolicy:      pulumi.String("Pad"),
				SizingPolicy:       pulumi.String("Fit"),
			},
			VideoCodecOptions: pulumi.StringMap{
				"ColorSpaceConversionMode": pulumi.String("None"),
				"InterlacedMode":           pulumi.String("Progressive"),
				"Level":                    pulumi.String("2.2"),
				"MaxReferenceFrames":       pulumi.String("3"),
				"Profile":                  pulumi.String("main"),
			},
			VideoWatermarks: elastictranscoder.PresetVideoWatermarkArray{
				&elastictranscoder.PresetVideoWatermarkArgs{
					HorizontalAlign:  pulumi.String("Right"),
					HorizontalOffset: pulumi.String("10px"),
					Id:               pulumi.String("Test"),
					MaxHeight:        pulumi.String(fmt.Sprintf("%v%v", "20", "%")),
					MaxWidth:         pulumi.String(fmt.Sprintf("%v%v", "20", "%")),
					Opacity:          pulumi.String("55.5"),
					SizingPolicy:     pulumi.String("ShrinkToFit"),
					Target:           pulumi.String("Content"),
					VerticalAlign:    pulumi.String("Bottom"),
					VerticalOffset:   pulumi.String("10px"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_aws as aws

bar = aws.elastictranscoder.Preset("bar",
    audio=aws.elastictranscoder.PresetAudioArgs(
        audio_packing_mode="SingleTrack",
        bit_rate="96",
        channels="2",
        codec="AAC",
        sample_rate="44100",
    ),
    audio_codec_options=aws.elastictranscoder.PresetAudioCodecOptionsArgs(
        profile="AAC-LC",
    ),
    container="mp4",
    description="Sample Preset",
    thumbnails=aws.elastictranscoder.PresetThumbnailsArgs(
        format="png",
        interval="120",
        max_height="auto",
        max_width="auto",
        padding_policy="Pad",
        sizing_policy="Fit",
    ),
    video=aws.elastictranscoder.PresetVideoArgs(
        bit_rate="1600",
        codec="H.264",
        display_aspect_ratio="16:9",
        fixed_gop="false",
        frame_rate="auto",
        keyframes_max_dist="240",
        max_frame_rate="60",
        max_height="auto",
        max_width="auto",
        padding_policy="Pad",
        sizing_policy="Fit",
    ),
    video_codec_options={
        "ColorSpaceConversionMode": "None",
        "InterlacedMode": "Progressive",
        "Level": "2.2",
        "MaxReferenceFrames": "3",
        "Profile": "main",
    },
    video_watermarks=[aws.elastictranscoder.PresetVideoWatermarkArgs(
        horizontal_align="Right",
        horizontal_offset="10px",
        id="Test",
        max_height="20%",
        max_width="20%",
        opacity="55.5",
        sizing_policy="ShrinkToFit",
        target="Content",
        vertical_align="Bottom",
        vertical_offset="10px",
    )])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const bar = new aws.elastictranscoder.Preset("bar", {
    audio: {
        audioPackingMode: "SingleTrack",
        bitRate: "96",
        channels: "2",
        codec: "AAC",
        sampleRate: "44100",
    },
    audioCodecOptions: {
        profile: "AAC-LC",
    },
    container: "mp4",
    description: "Sample Preset",
    thumbnails: {
        format: "png",
        interval: "120",
        maxHeight: "auto",
        maxWidth: "auto",
        paddingPolicy: "Pad",
        sizingPolicy: "Fit",
    },
    video: {
        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: [{
        horizontalAlign: "Right",
        horizontalOffset: "10px",
        id: "Test",
        maxHeight: "20%",
        maxWidth: "20%",
        opacity: "55.5",
        sizingPolicy: "ShrinkToFit",
        target: "Content",
        verticalAlign: "Bottom",
        verticalOffset: "10px",
    }],
});

Create a Preset Resource

new Preset(name: string, args: PresetArgs, opts?: CustomResourceOptions);
@overload
def Preset(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           audio: Optional[PresetAudioArgs] = None,
           audio_codec_options: Optional[PresetAudioCodecOptionsArgs] = None,
           container: Optional[str] = None,
           description: Optional[str] = None,
           name: Optional[str] = None,
           thumbnails: Optional[PresetThumbnailsArgs] = None,
           type: Optional[str] = None,
           video: Optional[PresetVideoArgs] = None,
           video_codec_options: Optional[Mapping[str, str]] = None,
           video_watermarks: Optional[Sequence[PresetVideoWatermarkArgs]] = None)
@overload
def Preset(resource_name: str,
           args: PresetArgs,
           opts: Optional[ResourceOptions] = None)
func NewPreset(ctx *Context, name string, args PresetArgs, opts ...ResourceOption) (*Preset, error)
public Preset(string name, PresetArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args PresetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args PresetArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args PresetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args PresetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Preset Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Preset resource accepts the following input properties:

Container string
The container type for the output file. Valid values are flac, flv, fmp4, gif, mp3, mp4, mpg, mxf, oga, ogg, ts, and webm.
Audio PresetAudioArgs
Audio parameters object (documented below).
AudioCodecOptions PresetAudioCodecOptionsArgs
Codec options for the audio parameters (documented below)
Description string
A description of the preset (maximum 255 characters)
Name string
The name of the preset. (maximum 40 characters)
Thumbnails PresetThumbnailsArgs
Thumbnail parameters object (documented below)
Type string
Video PresetVideoArgs
Video parameters object (documented below)
VideoCodecOptions Dictionary<string, string>
Codec options for the video parameters
VideoWatermarks List<PresetVideoWatermarkArgs>
Watermark parameters for the video parameters (documented below)
Container string
The container type for the output file. Valid values are flac, flv, fmp4, gif, mp3, mp4, mpg, mxf, oga, ogg, ts, and webm.
Audio PresetAudioArgs
Audio parameters object (documented below).
AudioCodecOptions PresetAudioCodecOptionsArgs
Codec options for the audio parameters (documented below)
Description string
A description of the preset (maximum 255 characters)
Name string
The name of the preset. (maximum 40 characters)
Thumbnails PresetThumbnailsArgs
Thumbnail parameters object (documented below)
Type string
Video PresetVideoArgs
Video parameters object (documented below)
VideoCodecOptions map[string]string
Codec options for the video parameters
VideoWatermarks []PresetVideoWatermarkArgs
Watermark parameters for the video parameters (documented below)
container string
The container type for the output file. Valid values are flac, flv, fmp4, gif, mp3, mp4, mpg, mxf, oga, ogg, ts, and webm.
audio PresetAudioArgs
Audio parameters object (documented below).
audioCodecOptions PresetAudioCodecOptionsArgs
Codec options for the audio parameters (documented below)
description string
A description of the preset (maximum 255 characters)
name string
The name of the preset. (maximum 40 characters)
thumbnails PresetThumbnailsArgs
Thumbnail parameters object (documented below)
type string
video PresetVideoArgs
Video parameters object (documented below)
videoCodecOptions {[key: string]: string}
Codec options for the video parameters
videoWatermarks PresetVideoWatermarkArgs[]
Watermark parameters for the video parameters (documented below)
container str
The container type for the output file. Valid values are flac, flv, fmp4, gif, mp3, mp4, mpg, mxf, oga, ogg, ts, and webm.
audio PresetAudioArgs
Audio parameters object (documented below).
audio_codec_options PresetAudioCodecOptionsArgs
Codec options for the audio parameters (documented below)
description str
A description of the preset (maximum 255 characters)
name str
The name of the preset. (maximum 40 characters)
thumbnails PresetThumbnailsArgs
Thumbnail parameters object (documented below)
type str
video PresetVideoArgs
Video parameters object (documented below)
video_codec_options Mapping[str, str]
Codec options for the video parameters
video_watermarks Sequence[PresetVideoWatermarkArgs]
Watermark parameters for the video parameters (documented below)

Outputs

All input properties are implicitly available as output properties. Additionally, the Preset resource produces the following output properties:

Arn string
Amazon Resource Name (ARN) of the Elastic Transcoder Preset.
Id string
The provider-assigned unique ID for this managed resource.
Arn string
Amazon Resource Name (ARN) of the Elastic Transcoder Preset.
Id string
The provider-assigned unique ID for this managed resource.
arn string
Amazon Resource Name (ARN) of the Elastic Transcoder Preset.
id string
The provider-assigned unique ID for this managed resource.
arn str
Amazon Resource Name (ARN) of the Elastic Transcoder Preset.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing Preset Resource

Get an existing Preset 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?: PresetState, opts?: CustomResourceOptions): Preset
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        audio: Optional[PresetAudioArgs] = None,
        audio_codec_options: Optional[PresetAudioCodecOptionsArgs] = None,
        container: Optional[str] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        thumbnails: Optional[PresetThumbnailsArgs] = None,
        type: Optional[str] = None,
        video: Optional[PresetVideoArgs] = None,
        video_codec_options: Optional[Mapping[str, str]] = None,
        video_watermarks: Optional[Sequence[PresetVideoWatermarkArgs]] = None) -> Preset
func GetPreset(ctx *Context, name string, id IDInput, state *PresetState, opts ...ResourceOption) (*Preset, error)
public static Preset Get(string name, Input<string> id, PresetState? 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
Amazon Resource Name (ARN) of the Elastic Transcoder Preset.
Audio PresetAudioArgs
Audio parameters object (documented below).
AudioCodecOptions PresetAudioCodecOptionsArgs
Codec options for the audio parameters (documented below)
Container string
The container type for the output file. Valid values are flac, flv, fmp4, gif, mp3, mp4, mpg, mxf, oga, ogg, ts, and webm.
Description string
A description of the preset (maximum 255 characters)
Name string
The name of the preset. (maximum 40 characters)
Thumbnails PresetThumbnailsArgs
Thumbnail parameters object (documented below)
Type string
Video PresetVideoArgs
Video parameters object (documented below)
VideoCodecOptions Dictionary<string, string>
Codec options for the video parameters
VideoWatermarks List<PresetVideoWatermarkArgs>
Watermark parameters for the video parameters (documented below)
Arn string
Amazon Resource Name (ARN) of the Elastic Transcoder Preset.
Audio PresetAudioArgs
Audio parameters object (documented below).
AudioCodecOptions PresetAudioCodecOptionsArgs
Codec options for the audio parameters (documented below)
Container string
The container type for the output file. Valid values are flac, flv, fmp4, gif, mp3, mp4, mpg, mxf, oga, ogg, ts, and webm.
Description string
A description of the preset (maximum 255 characters)
Name string
The name of the preset. (maximum 40 characters)
Thumbnails PresetThumbnailsArgs
Thumbnail parameters object (documented below)
Type string
Video PresetVideoArgs
Video parameters object (documented below)
VideoCodecOptions map[string]string
Codec options for the video parameters
VideoWatermarks []PresetVideoWatermarkArgs
Watermark parameters for the video parameters (documented below)
arn string
Amazon Resource Name (ARN) of the Elastic Transcoder Preset.
audio PresetAudioArgs
Audio parameters object (documented below).
audioCodecOptions PresetAudioCodecOptionsArgs
Codec options for the audio parameters (documented below)
container string
The container type for the output file. Valid values are flac, flv, fmp4, gif, mp3, mp4, mpg, mxf, oga, ogg, ts, and webm.
description string
A description of the preset (maximum 255 characters)
name string
The name of the preset. (maximum 40 characters)
thumbnails PresetThumbnailsArgs
Thumbnail parameters object (documented below)
type string
video PresetVideoArgs
Video parameters object (documented below)
videoCodecOptions {[key: string]: string}
Codec options for the video parameters
videoWatermarks PresetVideoWatermarkArgs[]
Watermark parameters for the video parameters (documented below)
arn str
Amazon Resource Name (ARN) of the Elastic Transcoder Preset.
audio PresetAudioArgs
Audio parameters object (documented below).
audio_codec_options PresetAudioCodecOptionsArgs
Codec options for the audio parameters (documented below)
container str
The container type for the output file. Valid values are flac, flv, fmp4, gif, mp3, mp4, mpg, mxf, oga, ogg, ts, and webm.
description str
A description of the preset (maximum 255 characters)
name str
The name of the preset. (maximum 40 characters)
thumbnails PresetThumbnailsArgs
Thumbnail parameters object (documented below)
type str
video PresetVideoArgs
Video parameters object (documented below)
video_codec_options Mapping[str, str]
Codec options for the video parameters
video_watermarks Sequence[PresetVideoWatermarkArgs]
Watermark parameters for the video parameters (documented below)

Supporting Types

PresetAudio

AudioPackingMode string
The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack.
BitRate string
The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.
Channels string
The number of audio channels in the output file
Codec string
The audio codec for the output file. Valid values are AAC, flac, mp2, mp3, pcm, and vorbis.
SampleRate string
The sample rate of the audio stream in the output file, in hertz. Valid values are: auto, 22050, 32000, 44100, 48000, 96000
AudioPackingMode string
The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack.
BitRate string
The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.
Channels string
The number of audio channels in the output file
Codec string
The audio codec for the output file. Valid values are AAC, flac, mp2, mp3, pcm, and vorbis.
SampleRate string
The sample rate of the audio stream in the output file, in hertz. Valid values are: auto, 22050, 32000, 44100, 48000, 96000
audioPackingMode string
The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack.
bitRate string
The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.
channels string
The number of audio channels in the output file
codec string
The audio codec for the output file. Valid values are AAC, flac, mp2, mp3, pcm, and vorbis.
sampleRate string
The sample rate of the audio stream in the output file, in hertz. Valid values are: auto, 22050, 32000, 44100, 48000, 96000
audio_packing_mode str
The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack.
bit_rate str
The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.
channels str
The number of audio channels in the output file
codec str
The audio codec for the output file. Valid values are AAC, flac, mp2, mp3, pcm, and vorbis.
sample_rate str
The sample rate of the audio stream in the output file, in hertz. Valid values are: auto, 22050, 32000, 44100, 48000, 96000

PresetAudioCodecOptions

BitDepth string
The bit depth of a sample is how many bits of information are included in the audio samples. Valid values are 16 and 24. (FLAC/PCM Only)
BitOrder string
The order the bits of a PCM sample are stored in. The supported value is LittleEndian. (PCM Only)
Profile string
If you specified AAC for Audio:Codec, choose the AAC profile for the output file.
Signed string
Whether audio samples are represented with negative and positive numbers (signed) or only positive numbers (unsigned). The supported value is Signed. (PCM Only)
BitDepth string
The bit depth of a sample is how many bits of information are included in the audio samples. Valid values are 16 and 24. (FLAC/PCM Only)
BitOrder string
The order the bits of a PCM sample are stored in. The supported value is LittleEndian. (PCM Only)
Profile string
If you specified AAC for Audio:Codec, choose the AAC profile for the output file.
Signed string
Whether audio samples are represented with negative and positive numbers (signed) or only positive numbers (unsigned). The supported value is Signed. (PCM Only)
bitDepth string
The bit depth of a sample is how many bits of information are included in the audio samples. Valid values are 16 and 24. (FLAC/PCM Only)
bitOrder string
The order the bits of a PCM sample are stored in. The supported value is LittleEndian. (PCM Only)
profile string
If you specified AAC for Audio:Codec, choose the AAC profile for the output file.
signed string
Whether audio samples are represented with negative and positive numbers (signed) or only positive numbers (unsigned). The supported value is Signed. (PCM Only)
bit_depth str
The bit depth of a sample is how many bits of information are included in the audio samples. Valid values are 16 and 24. (FLAC/PCM Only)
bit_order str
The order the bits of a PCM sample are stored in. The supported value is LittleEndian. (PCM Only)
profile str
If you specified AAC for Audio:Codec, choose the AAC profile for the output file.
signed str
Whether audio samples are represented with negative and positive numbers (signed) or only positive numbers (unsigned). The supported value is Signed. (PCM Only)

PresetThumbnails

AspectRatio string
The aspect ratio of thumbnails. The following values are valid: auto, 1:1, 4:3, 3:2, 16:9
Format string
The format of thumbnails, if any. Valid formats are jpg and png.
Interval string
The approximate number of seconds between thumbnails. The value must be an integer. The actual interval can vary by several seconds from one thumbnail to the next.
MaxHeight string
The maximum height of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive.
MaxWidth string
The maximum width of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive.
PaddingPolicy string
When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnail MaxWidth and MaxHeight settings.
Resolution string
The width and height of thumbnail files in pixels, in the format WidthxHeight, where both values are even integers. The values cannot exceed the width and height that you specified in the Video:Resolution object. (To better control resolution and aspect ratio of thumbnails, we recommend that you use the thumbnail values max_width, max_height, sizing_policy, and padding_policy instead of resolution and aspect_ratio. The two groups of settings are mutually exclusive. Do not use them together)
SizingPolicy string
A value that controls scaling of thumbnails. Valid values are: Fit, Fill, Stretch, Keep, ShrinkToFit, and ShrinkToFill.
AspectRatio string
The aspect ratio of thumbnails. The following values are valid: auto, 1:1, 4:3, 3:2, 16:9
Format string
The format of thumbnails, if any. Valid formats are jpg and png.
Interval string
The approximate number of seconds between thumbnails. The value must be an integer. The actual interval can vary by several seconds from one thumbnail to the next.
MaxHeight string
The maximum height of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive.
MaxWidth string
The maximum width of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive.
PaddingPolicy string
When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnail MaxWidth and MaxHeight settings.
Resolution string
The width and height of thumbnail files in pixels, in the format WidthxHeight, where both values are even integers. The values cannot exceed the width and height that you specified in the Video:Resolution object. (To better control resolution and aspect ratio of thumbnails, we recommend that you use the thumbnail values max_width, max_height, sizing_policy, and padding_policy instead of resolution and aspect_ratio. The two groups of settings are mutually exclusive. Do not use them together)
SizingPolicy string
A value that controls scaling of thumbnails. Valid values are: Fit, Fill, Stretch, Keep, ShrinkToFit, and ShrinkToFill.
aspectRatio string
The aspect ratio of thumbnails. The following values are valid: auto, 1:1, 4:3, 3:2, 16:9
format string
The format of thumbnails, if any. Valid formats are jpg and png.
interval string
The approximate number of seconds between thumbnails. The value must be an integer. The actual interval can vary by several seconds from one thumbnail to the next.
maxHeight string
The maximum height of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive.
maxWidth string
The maximum width of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive.
paddingPolicy string
When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnail MaxWidth and MaxHeight settings.
resolution string
The width and height of thumbnail files in pixels, in the format WidthxHeight, where both values are even integers. The values cannot exceed the width and height that you specified in the Video:Resolution object. (To better control resolution and aspect ratio of thumbnails, we recommend that you use the thumbnail values max_width, max_height, sizing_policy, and padding_policy instead of resolution and aspect_ratio. The two groups of settings are mutually exclusive. Do not use them together)
sizingPolicy string
A value that controls scaling of thumbnails. Valid values are: Fit, Fill, Stretch, Keep, ShrinkToFit, and ShrinkToFill.
aspect_ratio str
The aspect ratio of thumbnails. The following values are valid: auto, 1:1, 4:3, 3:2, 16:9
format str
The format of thumbnails, if any. Valid formats are jpg and png.
interval str
The approximate number of seconds between thumbnails. The value must be an integer. The actual interval can vary by several seconds from one thumbnail to the next.
max_height str
The maximum height of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive.
max_width str
The maximum width of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive.
padding_policy str
When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnail MaxWidth and MaxHeight settings.
resolution str
The width and height of thumbnail files in pixels, in the format WidthxHeight, where both values are even integers. The values cannot exceed the width and height that you specified in the Video:Resolution object. (To better control resolution and aspect ratio of thumbnails, we recommend that you use the thumbnail values max_width, max_height, sizing_policy, and padding_policy instead of resolution and aspect_ratio. The two groups of settings are mutually exclusive. Do not use them together)
sizing_policy str
A value that controls scaling of thumbnails. Valid values are: Fit, Fill, Stretch, Keep, ShrinkToFit, and ShrinkToFill.

PresetVideo

AspectRatio string
The display aspect ratio of the video in the output file. Valid values are: auto, 1:1, 4:3, 3:2, 16:9. (Note; to better control resolution and aspect ratio of output videos, we recommend that you use the values max_width, max_height, sizing_policy, padding_policy, and display_aspect_ratio instead of resolution and aspect_ratio.)
BitRate string
The bit rate of the video stream in the output file, in kilobits/second. You can configure variable bit rate or constant bit rate encoding.
Codec string
The video codec for the output file. Valid values are gif, H.264, mpeg2, vp8, and vp9.
DisplayAspectRatio string
The value that Elastic Transcoder adds to the metadata in the output file. If you set DisplayAspectRatio to auto, Elastic Transcoder chooses an aspect ratio that ensures square pixels. If you specify another option, Elastic Transcoder sets that value in the output file.
FixedGop string
Whether to use a fixed value for Video:FixedGOP. Not applicable for containers of type gif. Valid values are true and false. Also known as, Fixed Number of Frames Between Keyframes.
FrameRate string
The frames per second for the video stream in the output file. The following values are valid: auto, 10, 15, 23.97, 24, 25, 29.97, 30, 50, 60.
KeyframesMaxDist string
The maximum number of frames between key frames. Not applicable for containers of type gif.
MaxFrameRate string
If you specify auto for FrameRate, Elastic Transcoder uses the frame rate of the input video for the frame rate of the output video, up to the maximum frame rate. If you do not specify a MaxFrameRate, Elastic Transcoder will use a default of 30.
MaxHeight string
The maximum height of the output video in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 96 and 3072, inclusive.
MaxWidth string
The maximum width of the output video in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 128 and 4096, inclusive.
PaddingPolicy string
When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of the output video to make the total size of the output video match the values that you specified for max_width and max_height.
Resolution string
The width and height of the video in the output file, in pixels. Valid values are auto and widthxheight. (see note for aspect_ratio)
SizingPolicy string
A value that controls scaling of the output video. Valid values are: Fit, Fill, Stretch, Keep, ShrinkToFit, ShrinkToFill.
AspectRatio string
The display aspect ratio of the video in the output file. Valid values are: auto, 1:1, 4:3, 3:2, 16:9. (Note; to better control resolution and aspect ratio of output videos, we recommend that you use the values max_width, max_height, sizing_policy, padding_policy, and display_aspect_ratio instead of resolution and aspect_ratio.)
BitRate string
The bit rate of the video stream in the output file, in kilobits/second. You can configure variable bit rate or constant bit rate encoding.
Codec string
The video codec for the output file. Valid values are gif, H.264, mpeg2, vp8, and vp9.
DisplayAspectRatio string
The value that Elastic Transcoder adds to the metadata in the output file. If you set DisplayAspectRatio to auto, Elastic Transcoder chooses an aspect ratio that ensures square pixels. If you specify another option, Elastic Transcoder sets that value in the output file.
FixedGop string
Whether to use a fixed value for Video:FixedGOP. Not applicable for containers of type gif. Valid values are true and false. Also known as, Fixed Number of Frames Between Keyframes.
FrameRate string
The frames per second for the video stream in the output file. The following values are valid: auto, 10, 15, 23.97, 24, 25, 29.97, 30, 50, 60.
KeyframesMaxDist string
The maximum number of frames between key frames. Not applicable for containers of type gif.
MaxFrameRate string
If you specify auto for FrameRate, Elastic Transcoder uses the frame rate of the input video for the frame rate of the output video, up to the maximum frame rate. If you do not specify a MaxFrameRate, Elastic Transcoder will use a default of 30.
MaxHeight string
The maximum height of the output video in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 96 and 3072, inclusive.
MaxWidth string
The maximum width of the output video in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 128 and 4096, inclusive.
PaddingPolicy string
When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of the output video to make the total size of the output video match the values that you specified for max_width and max_height.
Resolution string
The width and height of the video in the output file, in pixels. Valid values are auto and widthxheight. (see note for aspect_ratio)
SizingPolicy string
A value that controls scaling of the output video. Valid values are: Fit, Fill, Stretch, Keep, ShrinkToFit, ShrinkToFill.
aspectRatio string
The display aspect ratio of the video in the output file. Valid values are: auto, 1:1, 4:3, 3:2, 16:9. (Note; to better control resolution and aspect ratio of output videos, we recommend that you use the values max_width, max_height, sizing_policy, padding_policy, and display_aspect_ratio instead of resolution and aspect_ratio.)
bitRate string
The bit rate of the video stream in the output file, in kilobits/second. You can configure variable bit rate or constant bit rate encoding.
codec string
The video codec for the output file. Valid values are gif, H.264, mpeg2, vp8, and vp9.
displayAspectRatio string
The value that Elastic Transcoder adds to the metadata in the output file. If you set DisplayAspectRatio to auto, Elastic Transcoder chooses an aspect ratio that ensures square pixels. If you specify another option, Elastic Transcoder sets that value in the output file.
fixedGop string
Whether to use a fixed value for Video:FixedGOP. Not applicable for containers of type gif. Valid values are true and false. Also known as, Fixed Number of Frames Between Keyframes.
frameRate string
The frames per second for the video stream in the output file. The following values are valid: auto, 10, 15, 23.97, 24, 25, 29.97, 30, 50, 60.
keyframesMaxDist string
The maximum number of frames between key frames. Not applicable for containers of type gif.
maxFrameRate string
If you specify auto for FrameRate, Elastic Transcoder uses the frame rate of the input video for the frame rate of the output video, up to the maximum frame rate. If you do not specify a MaxFrameRate, Elastic Transcoder will use a default of 30.
maxHeight string
The maximum height of the output video in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 96 and 3072, inclusive.
maxWidth string
The maximum width of the output video in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 128 and 4096, inclusive.
paddingPolicy string
When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of the output video to make the total size of the output video match the values that you specified for max_width and max_height.
resolution string
The width and height of the video in the output file, in pixels. Valid values are auto and widthxheight. (see note for aspect_ratio)
sizingPolicy string
A value that controls scaling of the output video. Valid values are: Fit, Fill, Stretch, Keep, ShrinkToFit, ShrinkToFill.
aspect_ratio str
The display aspect ratio of the video in the output file. Valid values are: auto, 1:1, 4:3, 3:2, 16:9. (Note; to better control resolution and aspect ratio of output videos, we recommend that you use the values max_width, max_height, sizing_policy, padding_policy, and display_aspect_ratio instead of resolution and aspect_ratio.)
bit_rate str
The bit rate of the video stream in the output file, in kilobits/second. You can configure variable bit rate or constant bit rate encoding.
codec str
The video codec for the output file. Valid values are gif, H.264, mpeg2, vp8, and vp9.
display_aspect_ratio str
The value that Elastic Transcoder adds to the metadata in the output file. If you set DisplayAspectRatio to auto, Elastic Transcoder chooses an aspect ratio that ensures square pixels. If you specify another option, Elastic Transcoder sets that value in the output file.
fixed_gop str
Whether to use a fixed value for Video:FixedGOP. Not applicable for containers of type gif. Valid values are true and false. Also known as, Fixed Number of Frames Between Keyframes.
frame_rate str
The frames per second for the video stream in the output file. The following values are valid: auto, 10, 15, 23.97, 24, 25, 29.97, 30, 50, 60.
keyframes_max_dist str
The maximum number of frames between key frames. Not applicable for containers of type gif.
max_frame_rate str
If you specify auto for FrameRate, Elastic Transcoder uses the frame rate of the input video for the frame rate of the output video, up to the maximum frame rate. If you do not specify a MaxFrameRate, Elastic Transcoder will use a default of 30.
max_height str
The maximum height of the output video in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 96 and 3072, inclusive.
max_width str
The maximum width of the output video in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 128 and 4096, inclusive.
padding_policy str
When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of the output video to make the total size of the output video match the values that you specified for max_width and max_height.
resolution str
The width and height of the video in the output file, in pixels. Valid values are auto and widthxheight. (see note for aspect_ratio)
sizing_policy str
A value that controls scaling of the output video. Valid values are: Fit, Fill, Stretch, Keep, ShrinkToFit, ShrinkToFill.

PresetVideoWatermark

HorizontalAlign string
The horizontal position of the watermark unless you specify a nonzero value for horzontal_offset.
HorizontalOffset string
The amount by which you want the horizontal position of the watermark to be offset from the position specified by horizontal_align.
Id string
A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long. You can specify settings for up to four watermarks.
MaxHeight string
The maximum height of the watermark.
MaxWidth string
The maximum width of the watermark.
Opacity string
A percentage that indicates how much you want a watermark to obscure the video in the location where it appears.
SizingPolicy string
A value that controls scaling of the watermark. Valid values are: Fit, Stretch, ShrinkToFit
Target string
A value that determines how Elastic Transcoder interprets values that you specified for video_watermarks.horizontal_offset, video_watermarks.vertical_offset, video_watermarks.max_width, and video_watermarks.max_height. Valid values are Content and Frame.
VerticalAlign string
The vertical position of the watermark unless you specify a nonzero value for vertical_align. Valid values are Top, Bottom, Center.
VerticalOffset string
The amount by which you want the vertical position of the watermark to be offset from the position specified by vertical_align
HorizontalAlign string
The horizontal position of the watermark unless you specify a nonzero value for horzontal_offset.
HorizontalOffset string
The amount by which you want the horizontal position of the watermark to be offset from the position specified by horizontal_align.
Id string
A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long. You can specify settings for up to four watermarks.
MaxHeight string
The maximum height of the watermark.
MaxWidth string
The maximum width of the watermark.
Opacity string
A percentage that indicates how much you want a watermark to obscure the video in the location where it appears.
SizingPolicy string
A value that controls scaling of the watermark. Valid values are: Fit, Stretch, ShrinkToFit
Target string
A value that determines how Elastic Transcoder interprets values that you specified for video_watermarks.horizontal_offset, video_watermarks.vertical_offset, video_watermarks.max_width, and video_watermarks.max_height. Valid values are Content and Frame.
VerticalAlign string
The vertical position of the watermark unless you specify a nonzero value for vertical_align. Valid values are Top, Bottom, Center.
VerticalOffset string
The amount by which you want the vertical position of the watermark to be offset from the position specified by vertical_align
horizontalAlign string
The horizontal position of the watermark unless you specify a nonzero value for horzontal_offset.
horizontalOffset string
The amount by which you want the horizontal position of the watermark to be offset from the position specified by horizontal_align.
id string
A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long. You can specify settings for up to four watermarks.
maxHeight string
The maximum height of the watermark.
maxWidth string
The maximum width of the watermark.
opacity string
A percentage that indicates how much you want a watermark to obscure the video in the location where it appears.
sizingPolicy string
A value that controls scaling of the watermark. Valid values are: Fit, Stretch, ShrinkToFit
target string
A value that determines how Elastic Transcoder interprets values that you specified for video_watermarks.horizontal_offset, video_watermarks.vertical_offset, video_watermarks.max_width, and video_watermarks.max_height. Valid values are Content and Frame.
verticalAlign string
The vertical position of the watermark unless you specify a nonzero value for vertical_align. Valid values are Top, Bottom, Center.
verticalOffset string
The amount by which you want the vertical position of the watermark to be offset from the position specified by vertical_align
horizontal_align str
The horizontal position of the watermark unless you specify a nonzero value for horzontal_offset.
horizontal_offset str
The amount by which you want the horizontal position of the watermark to be offset from the position specified by horizontal_align.
id str
A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long. You can specify settings for up to four watermarks.
max_height str
The maximum height of the watermark.
max_width str
The maximum width of the watermark.
opacity str
A percentage that indicates how much you want a watermark to obscure the video in the location where it appears.
sizing_policy str
A value that controls scaling of the watermark. Valid values are: Fit, Stretch, ShrinkToFit
target str
A value that determines how Elastic Transcoder interprets values that you specified for video_watermarks.horizontal_offset, video_watermarks.vertical_offset, video_watermarks.max_width, and video_watermarks.max_height. Valid values are Content and Frame.
vertical_align str
The vertical position of the watermark unless you specify a nonzero value for vertical_align. Valid values are Top, Bottom, Center.
vertical_offset str
The amount by which you want the vertical position of the watermark to be offset from the position specified by vertical_align

Import

Elastic Transcoder presets can be imported using the id, e.g.,

 $ pulumi import aws:elastictranscoder/preset:Preset basic_preset 1407981661351-cttk8b

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.