NAME

Paws::ElasticTranscoder::CreatePreset - Arguments for method CreatePreset on Paws::ElasticTranscoder

DESCRIPTION

This class represents the parameters used for calling the method CreatePreset on the Amazon Elastic Transcoder service. Use the attributes of this class as arguments to method CreatePreset.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreatePreset.

SYNOPSIS

my $elastictranscoder = Paws->service('ElasticTranscoder');
my $CreatePresetResponse = $elastictranscoder->CreatePreset(
  Container => 'MyPresetContainer',
  Name      => 'MyName',
  Audio     => {
    AudioPackingMode => 'MyAudioPackingMode',    # OPTIONAL
    BitRate          => 'MyAudioBitRate',        # OPTIONAL
    Channels         => 'MyAudioChannels',       # OPTIONAL
    Codec            => 'MyAudioCodec',          # OPTIONAL
    CodecOptions     => {
      BitDepth => 'MyAudioBitDepth',             # OPTIONAL
      BitOrder => 'MyAudioBitOrder',             # OPTIONAL
      Profile  => 'MyAudioCodecProfile',         # OPTIONAL
      Signed   => 'MyAudioSigned',               # OPTIONAL
    },    # OPTIONAL
    SampleRate => 'MyAudioSampleRate',    # OPTIONAL
  },    # OPTIONAL
  Description => 'MyDescription',    # OPTIONAL
  Thumbnails  => {
    AspectRatio   => 'MyAspectRatio',            # OPTIONAL
    Format        => 'MyJpgOrPng',               # OPTIONAL
    Interval      => 'MyDigits',                 # OPTIONAL
    MaxHeight     => 'MyDigitsOrAuto',           # OPTIONAL
    MaxWidth      => 'MyDigitsOrAuto',           # OPTIONAL
    PaddingPolicy => 'MyPaddingPolicy',          # OPTIONAL
    Resolution    => 'MyThumbnailResolution',    # OPTIONAL
    SizingPolicy  => 'MySizingPolicy',           # OPTIONAL
  },    # OPTIONAL
  Video => {
    AspectRatio  => 'MyAspectRatio',     # OPTIONAL
    BitRate      => 'MyVideoBitRate',    # OPTIONAL
    Codec        => 'MyVideoCodec',      # OPTIONAL
    CodecOptions => {
      'MyCodecOption' =>
        'MyCodecOption',    # key: min: 1, max: 255, value: min: 1, max: 255
    },    # max: 30; OPTIONAL
    DisplayAspectRatio => 'MyAspectRatio',         # OPTIONAL
    FixedGOP           => 'MyFixedGOP',            # OPTIONAL
    FrameRate          => 'MyFrameRate',           # OPTIONAL
    KeyframesMaxDist   => 'MyKeyframesMaxDist',    # OPTIONAL
    MaxFrameRate       => 'MyMaxFrameRate',        # OPTIONAL
    MaxHeight          => 'MyDigitsOrAuto',        # OPTIONAL
    MaxWidth           => 'MyDigitsOrAuto',        # OPTIONAL
    PaddingPolicy      => 'MyPaddingPolicy',       # OPTIONAL
    Resolution         => 'MyResolution',          # OPTIONAL
    SizingPolicy       => 'MySizingPolicy',        # OPTIONAL
    Watermarks         => [
      {
        HorizontalAlign  => 'MyHorizontalAlign',        # OPTIONAL
        HorizontalOffset => 'MyPixelsOrPercent',        # OPTIONAL
        Id             => 'MyPresetWatermarkId', # min: 1, max: 40; OPTIONAL
        MaxHeight      => 'MyPixelsOrPercent',   # OPTIONAL
        MaxWidth       => 'MyPixelsOrPercent',   # OPTIONAL
        Opacity        => 'MyOpacity',           # OPTIONAL
        SizingPolicy   => 'MyWatermarkSizingPolicy',    # OPTIONAL
        Target         => 'MyTarget',                   # OPTIONAL
        VerticalAlign  => 'MyVerticalAlign',            # OPTIONAL
        VerticalOffset => 'MyPixelsOrPercent',          # OPTIONAL
      },
      ...
    ],    # OPTIONAL
  },    # OPTIONAL
);

# Results:
my $Preset  = $CreatePresetResponse->Preset;
my $Warning = $CreatePresetResponse->Warning;

# Returns a L<Paws::ElasticTranscoder::CreatePresetResponse> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/elastictranscoder/CreatePreset

ATTRIBUTES

Audio => Paws::ElasticTranscoder::AudioParameters

A section of the request body that specifies the audio parameters.

REQUIRED Container => Str

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

Description => Str

A description of the preset.

REQUIRED Name => Str

The name of the preset. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.

Thumbnails => Paws::ElasticTranscoder::Thumbnails

A section of the request body that specifies the thumbnail parameters, if any.

Video => Paws::ElasticTranscoder::VideoParameters

A section of the request body that specifies the video parameters.

SEE ALSO

This class forms part of Paws, documenting arguments for method CreatePreset in Paws::ElasticTranscoder

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues