Preset

Provides an Elastic Transcoder preset resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.elastictranscoder.Preset;
import com.pulumi.aws.elastictranscoder.PresetArgs;
import com.pulumi.aws.elastictranscoder.inputs.PresetAudioArgs;
import com.pulumi.aws.elastictranscoder.inputs.PresetAudioCodecOptionsArgs;
import com.pulumi.aws.elastictranscoder.inputs.PresetThumbnailsArgs;
import com.pulumi.aws.elastictranscoder.inputs.PresetVideoArgs;
import com.pulumi.aws.elastictranscoder.inputs.PresetVideoWatermarkArgs;
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 Preset("bar", PresetArgs.builder()
.audio(PresetAudioArgs.builder()
.audioPackingMode("SingleTrack")
.bitRate(96)
.channels(2)
.codec("AAC")
.sampleRate(44100)
.build())
.audioCodecOptions(PresetAudioCodecOptionsArgs.builder()
.profile("AAC-LC")
.build())
.container("mp4")
.description("Sample Preset")
.thumbnails(PresetThumbnailsArgs.builder()
.format("png")
.interval(120)
.maxHeight("auto")
.maxWidth("auto")
.paddingPolicy("Pad")
.sizingPolicy("Fit")
.build())
.video(PresetVideoArgs.builder()
.bitRate("1600")
.codec("H.264")
.displayAspectRatio("16:9")
.fixedGop("false")
.frameRate("auto")
.keyframesMaxDist(240)
.maxFrameRate("60")
.maxHeight("auto")
.maxWidth("auto")
.paddingPolicy("Pad")
.sizingPolicy("Fit")
.build())
.videoCodecOptions(Map.ofEntries(
Map.entry("ColorSpaceConversionMode", "None"),
Map.entry("InterlacedMode", "Progressive"),
Map.entry("Level", "2.2"),
Map.entry("MaxReferenceFrames", 3),
Map.entry("Profile", "main")
))
.videoWatermarks(PresetVideoWatermarkArgs.builder()
.horizontalAlign("Right")
.horizontalOffset("10px")
.id("Test")
.maxHeight("20%")
.maxWidth("20%")
.opacity("55.5")
.sizingPolicy("ShrinkToFit")
.target("Content")
.verticalAlign("Bottom")
.verticalOffset("10px")
.build())
.build());
}
}

Import

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

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

Properties

Link copied to clipboard
val arn: Output<String>

Amazon Resource Name (ARN) of the Elastic Transcoder Preset.

Link copied to clipboard
val audio: Output<PresetAudio>?

Audio parameters object (documented below).

Link copied to clipboard

Codec options for the audio parameters (documented below)

Link copied to clipboard
val container: Output<String>

The container type for the output file. Valid values are flac, flv, fmp4, gif, mp3, mp4, mpg, mxf, oga, ogg, ts, and webm.

Link copied to clipboard
val description: Output<String>?

A description of the preset (maximum 255 characters)

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the preset. (maximum 40 characters)

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Thumbnail parameters object (documented below)

Link copied to clipboard
val type: Output<String>
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val video: Output<PresetVideo>?

Video parameters object (documented below)

Link copied to clipboard

Codec options for the video parameters

Link copied to clipboard

Watermark parameters for the video parameters (documented below)