« blib/lib/Paws/ElasticTranscoder/CreatePipelineResponse.pm
↑ Summary
blib/lib/Paws/ElasticTranscoder/CreatePresetResponse.pm »
| 1 | |||
| 2 | package Paws::ElasticTranscoder::CreatePreset; | ||
| 3 | use Moose; | ||
| 4 | has Audio => (is => 'ro', isa => 'Paws::ElasticTranscoder::AudioParameters'); | ||
| 5 | has Container => (is => 'ro', isa => 'Str', required => 1); | ||
| 6 | has Description => (is => 'ro', isa => 'Str'); | ||
| 7 | has Name => (is => 'ro', isa => 'Str', required => 1); | ||
| 8 | has Thumbnails => (is => 'ro', isa => 'Paws::ElasticTranscoder::Thumbnails'); | ||
| 9 | has Video => (is => 'ro', isa => 'Paws::ElasticTranscoder::VideoParameters'); | ||
| 10 | |||
| 11 | use MooseX::ClassAttribute; | ||
| 12 | |||
| 13 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreatePreset'); | ||
| 14 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2012-09-25/presets'); | ||
| 15 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 16 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ElasticTranscoder::CreatePresetResponse'); | ||
| 17 | 1; | ||
| 18 | |||
| 19 | ### main pod documentation begin ### | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Paws::ElasticTranscoder::CreatePreset - Arguments for method CreatePreset on L<Paws::ElasticTranscoder> | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This class represents the parameters used for calling the method CreatePreset on the | ||
| 28 | L<Amazon Elastic Transcoder|Paws::ElasticTranscoder> service. Use the attributes of this class | ||
| 29 | as arguments to method CreatePreset. | ||
| 30 | |||
| 31 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreatePreset. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | my $elastictranscoder = Paws->service('ElasticTranscoder'); | ||
| 36 | my $CreatePresetResponse = $elastictranscoder->CreatePreset( | ||
| 37 | Container => 'MyPresetContainer', | ||
| 38 | Name => 'MyName', | ||
| 39 | Audio => { | ||
| 40 | AudioPackingMode => 'MyAudioPackingMode', # OPTIONAL | ||
| 41 | BitRate => 'MyAudioBitRate', # OPTIONAL | ||
| 42 | Channels => 'MyAudioChannels', # OPTIONAL | ||
| 43 | Codec => 'MyAudioCodec', # OPTIONAL | ||
| 44 | CodecOptions => { | ||
| 45 | BitDepth => 'MyAudioBitDepth', # OPTIONAL | ||
| 46 | BitOrder => 'MyAudioBitOrder', # OPTIONAL | ||
| 47 | Profile => 'MyAudioCodecProfile', # OPTIONAL | ||
| 48 | Signed => 'MyAudioSigned', # OPTIONAL | ||
| 49 | }, # OPTIONAL | ||
| 50 | SampleRate => 'MyAudioSampleRate', # OPTIONAL | ||
| 51 | }, # OPTIONAL | ||
| 52 | Description => 'MyDescription', # OPTIONAL | ||
| 53 | Thumbnails => { | ||
| 54 | AspectRatio => 'MyAspectRatio', # OPTIONAL | ||
| 55 | Format => 'MyJpgOrPng', # OPTIONAL | ||
| 56 | Interval => 'MyDigits', # OPTIONAL | ||
| 57 | MaxHeight => 'MyDigitsOrAuto', # OPTIONAL | ||
| 58 | MaxWidth => 'MyDigitsOrAuto', # OPTIONAL | ||
| 59 | PaddingPolicy => 'MyPaddingPolicy', # OPTIONAL | ||
| 60 | Resolution => 'MyThumbnailResolution', # OPTIONAL | ||
| 61 | SizingPolicy => 'MySizingPolicy', # OPTIONAL | ||
| 62 | }, # OPTIONAL | ||
| 63 | Video => { | ||
| 64 | AspectRatio => 'MyAspectRatio', # OPTIONAL | ||
| 65 | BitRate => 'MyVideoBitRate', # OPTIONAL | ||
| 66 | Codec => 'MyVideoCodec', # OPTIONAL | ||
| 67 | CodecOptions => { | ||
| 68 | 'MyCodecOption' => | ||
| 69 | 'MyCodecOption', # key: min: 1, max: 255, value: min: 1, max: 255 | ||
| 70 | }, # max: 30; OPTIONAL | ||
| 71 | DisplayAspectRatio => 'MyAspectRatio', # OPTIONAL | ||
| 72 | FixedGOP => 'MyFixedGOP', # OPTIONAL | ||
| 73 | FrameRate => 'MyFrameRate', # OPTIONAL | ||
| 74 | KeyframesMaxDist => 'MyKeyframesMaxDist', # OPTIONAL | ||
| 75 | MaxFrameRate => 'MyMaxFrameRate', # OPTIONAL | ||
| 76 | MaxHeight => 'MyDigitsOrAuto', # OPTIONAL | ||
| 77 | MaxWidth => 'MyDigitsOrAuto', # OPTIONAL | ||
| 78 | PaddingPolicy => 'MyPaddingPolicy', # OPTIONAL | ||
| 79 | Resolution => 'MyResolution', # OPTIONAL | ||
| 80 | SizingPolicy => 'MySizingPolicy', # OPTIONAL | ||
| 81 | Watermarks => [ | ||
| 82 | { | ||
| 83 | HorizontalAlign => 'MyHorizontalAlign', # OPTIONAL | ||
| 84 | HorizontalOffset => 'MyPixelsOrPercent', # OPTIONAL | ||
| 85 | Id => 'MyPresetWatermarkId', # min: 1, max: 40; OPTIONAL | ||
| 86 | MaxHeight => 'MyPixelsOrPercent', # OPTIONAL | ||
| 87 | MaxWidth => 'MyPixelsOrPercent', # OPTIONAL | ||
| 88 | Opacity => 'MyOpacity', # OPTIONAL | ||
| 89 | SizingPolicy => 'MyWatermarkSizingPolicy', # OPTIONAL | ||
| 90 | Target => 'MyTarget', # OPTIONAL | ||
| 91 | VerticalAlign => 'MyVerticalAlign', # OPTIONAL | ||
| 92 | VerticalOffset => 'MyPixelsOrPercent', # OPTIONAL | ||
| 93 | }, | ||
| 94 | ... | ||
| 95 | ], # OPTIONAL | ||
| 96 | }, # OPTIONAL | ||
| 97 | ); | ||
| 98 | |||
| 99 | # Results: | ||
| 100 | my $Preset = $CreatePresetResponse->Preset; | ||
| 101 | my $Warning = $CreatePresetResponse->Warning; | ||
| 102 | |||
| 103 | # Returns a L<Paws::ElasticTranscoder::CreatePresetResponse> object. | ||
| 104 | |||
| 105 | 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. | ||
| 106 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elastictranscoder/CreatePreset> | ||
| 107 | |||
| 108 | =head1 ATTRIBUTES | ||
| 109 | |||
| 110 | |||
| 111 | =head2 Audio => L<Paws::ElasticTranscoder::AudioParameters> | ||
| 112 | |||
| 113 | A section of the request body that specifies the audio parameters. | ||
| 114 | |||
| 115 | |||
| 116 | |||
| 117 | =head2 B<REQUIRED> Container => Str | ||
| 118 | |||
| 119 | The container type for the output file. Valid values include C<flac>, | ||
| 120 | C<flv>, C<fmp4>, C<gif>, C<mp3>, C<mp4>, C<mpg>, C<mxf>, C<oga>, | ||
| 121 | C<ogg>, C<ts>, and C<webm>. | ||
| 122 | |||
| 123 | |||
| 124 | |||
| 125 | =head2 Description => Str | ||
| 126 | |||
| 127 | A description of the preset. | ||
| 128 | |||
| 129 | |||
| 130 | |||
| 131 | =head2 B<REQUIRED> Name => Str | ||
| 132 | |||
| 133 | The name of the preset. We recommend that the name be unique within the | ||
| 134 | AWS account, but uniqueness is not enforced. | ||
| 135 | |||
| 136 | |||
| 137 | |||
| 138 | =head2 Thumbnails => L<Paws::ElasticTranscoder::Thumbnails> | ||
| 139 | |||
| 140 | A section of the request body that specifies the thumbnail parameters, | ||
| 141 | if any. | ||
| 142 | |||
| 143 | |||
| 144 | |||
| 145 | =head2 Video => L<Paws::ElasticTranscoder::VideoParameters> | ||
| 146 | |||
| 147 | A section of the request body that specifies the video parameters. | ||
| 148 | |||
| 149 | |||
| 150 | |||
| 151 | |||
| 152 | =head1 SEE ALSO | ||
| 153 | |||
| 154 | This class forms part of L<Paws>, documenting arguments for method CreatePreset in L<Paws::ElasticTranscoder> | ||
| 155 | |||
| 156 | =head1 BUGS and CONTRIBUTIONS | ||
| 157 | |||
| 158 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 159 | |||
| 160 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 161 | |||
| 162 | =cut | ||
| 163 |