blib/lib/Paws/ElasticTranscoder/CreateJob.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ElasticTranscoder::CreateJob;
3 use Moose;
4 has Input => (is => 'ro', isa => 'Paws::ElasticTranscoder::JobInput');
5 has Inputs => (is => 'ro', isa => 'ArrayRef[Paws::ElasticTranscoder::JobInput]');
6 has Output => (is => 'ro', isa => 'Paws::ElasticTranscoder::CreateJobOutput');
7 has OutputKeyPrefix => (is => 'ro', isa => 'Str');
8 has Outputs => (is => 'ro', isa => 'ArrayRef[Paws::ElasticTranscoder::CreateJobOutput]');
9 has PipelineId => (is => 'ro', isa => 'Str', required => 1);
10 has Playlists => (is => 'ro', isa => 'ArrayRef[Paws::ElasticTranscoder::CreateJobPlaylist]');
11 has UserMetadata => (is => 'ro', isa => 'Paws::ElasticTranscoder::UserMetadata');
12  
13 use MooseX::ClassAttribute;
14  
15 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateJob');
16 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2012-09-25/jobs');
17 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
18 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ElasticTranscoder::CreateJobResponse');
19 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::ElasticTranscoder::CreateJob - Arguments for method CreateJob on L<Paws::ElasticTranscoder>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method CreateJob on the
30 L<Amazon Elastic Transcoder|Paws::ElasticTranscoder> service. Use the attributes of this class
31 as arguments to method CreateJob.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateJob.
34  
35 =head1 SYNOPSIS
36  
37 my $elastictranscoder = Paws->service('ElasticTranscoder');
38 my $CreateJobResponse = $elastictranscoder->CreateJob(
39 PipelineId => 'MyId',
40 Input => {
41 AspectRatio => 'MyAspectRatio', # OPTIONAL
42 Container => 'MyJobContainer', # OPTIONAL
43 DetectedProperties => {
44 DurationMillis => 1, # OPTIONAL
45 FileSize => 1, # OPTIONAL
46 FrameRate => 'MyFloatString', # OPTIONAL
47 Height => 1, # OPTIONAL
48 Width => 1, # OPTIONAL
49 }, # OPTIONAL
50 Encryption => {
51 InitializationVector => 'MyZeroTo255String', # max: 255; OPTIONAL
52 Key => 'MyBase64EncodedString', # OPTIONAL
53 KeyMd5 => 'MyBase64EncodedString', # OPTIONAL
54 Mode => 'MyEncryptionMode', # OPTIONAL
55 }, # OPTIONAL
56 FrameRate => 'MyFrameRate', # OPTIONAL
57 InputCaptions => {
58 CaptionSources => [
59 {
60 Encryption => {
61 InitializationVector =>
62 'MyZeroTo255String', # max: 255; OPTIONAL
63 Key => 'MyBase64EncodedString', # OPTIONAL
64 KeyMd5 => 'MyBase64EncodedString', # OPTIONAL
65 Mode => 'MyEncryptionMode', # OPTIONAL
66 }, # OPTIONAL
67 Key => 'MyLongKey', # min: 1, max: 1024; OPTIONAL
68 Label => 'MyName', # min: 1, max: 40; OPTIONAL
69 Language => 'MyKey', # min: 1, max: 255; OPTIONAL
70 TimeOffset => 'MyTimeOffset', # OPTIONAL
71 },
72 ...
73 ], # max: 20; OPTIONAL
74 MergePolicy => 'MyCaptionMergePolicy', # OPTIONAL
75 }, # OPTIONAL
76 Interlaced => 'MyInterlaced', # OPTIONAL
77 Key => 'MyLongKey', # min: 1, max: 1024; OPTIONAL
78 Resolution => 'MyResolution', # OPTIONAL
79 TimeSpan => {
80 Duration => 'MyTime', # OPTIONAL
81 StartTime => 'MyTime', # OPTIONAL
82 }, # OPTIONAL
83 }, # OPTIONAL
84 Inputs => [
85 {
86 AspectRatio => 'MyAspectRatio', # OPTIONAL
87 Container => 'MyJobContainer', # OPTIONAL
88 DetectedProperties => {
89 DurationMillis => 1, # OPTIONAL
90 FileSize => 1, # OPTIONAL
91 FrameRate => 'MyFloatString', # OPTIONAL
92 Height => 1, # OPTIONAL
93 Width => 1, # OPTIONAL
94 }, # OPTIONAL
95 Encryption => {
96 InitializationVector => 'MyZeroTo255String', # max: 255; OPTIONAL
97 Key => 'MyBase64EncodedString', # OPTIONAL
98 KeyMd5 => 'MyBase64EncodedString', # OPTIONAL
99 Mode => 'MyEncryptionMode', # OPTIONAL
100 }, # OPTIONAL
101 FrameRate => 'MyFrameRate', # OPTIONAL
102 InputCaptions => {
103 CaptionSources => [
104 {
105 Encryption => {
106 InitializationVector =>
107 'MyZeroTo255String', # max: 255; OPTIONAL
108 Key => 'MyBase64EncodedString', # OPTIONAL
109 KeyMd5 => 'MyBase64EncodedString', # OPTIONAL
110 Mode => 'MyEncryptionMode', # OPTIONAL
111 }, # OPTIONAL
112 Key => 'MyLongKey', # min: 1, max: 1024; OPTIONAL
113 Label => 'MyName', # min: 1, max: 40; OPTIONAL
114 Language => 'MyKey', # min: 1, max: 255; OPTIONAL
115 TimeOffset => 'MyTimeOffset', # OPTIONAL
116 },
117 ...
118 ], # max: 20; OPTIONAL
119 MergePolicy => 'MyCaptionMergePolicy', # OPTIONAL
120 }, # OPTIONAL
121 Interlaced => 'MyInterlaced', # OPTIONAL
122 Key => 'MyLongKey', # min: 1, max: 1024; OPTIONAL
123 Resolution => 'MyResolution', # OPTIONAL
124 TimeSpan => {
125 Duration => 'MyTime', # OPTIONAL
126 StartTime => 'MyTime', # OPTIONAL
127 }, # OPTIONAL
128 },
129 ...
130 ], # OPTIONAL
131 Output => {
132 AlbumArt => {
133 Artwork => [
134 {
135 AlbumArtFormat => 'MyJpgOrPng', # OPTIONAL
136 Encryption => {
137 InitializationVector =>
138 'MyZeroTo255String', # max: 255; OPTIONAL
139 Key => 'MyBase64EncodedString', # OPTIONAL
140 KeyMd5 => 'MyBase64EncodedString', # OPTIONAL
141 Mode => 'MyEncryptionMode', # OPTIONAL
142 }, # OPTIONAL
143 InputKey => 'MyWatermarkKey', # min: 1, max: 1024; OPTIONAL
144 MaxHeight => 'MyDigitsOrAuto', # OPTIONAL
145 MaxWidth => 'MyDigitsOrAuto', # OPTIONAL
146 PaddingPolicy => 'MyPaddingPolicy', # OPTIONAL
147 SizingPolicy => 'MySizingPolicy', # OPTIONAL
148 },
149 ...
150 ], # OPTIONAL
151 MergePolicy => 'MyMergePolicy', # OPTIONAL
152 }, # OPTIONAL
153 Captions => {
154 CaptionFormats => [
155 {
156 Encryption => {
157 InitializationVector =>
158 'MyZeroTo255String', # max: 255; OPTIONAL
159 Key => 'MyBase64EncodedString', # OPTIONAL
160 KeyMd5 => 'MyBase64EncodedString', # OPTIONAL
161 Mode => 'MyEncryptionMode', # OPTIONAL
162 }, # OPTIONAL
163 Format => 'MyCaptionFormatFormat', # OPTIONAL
164 Pattern => 'MyCaptionFormatPattern', # OPTIONAL
165 },
166 ...
167 ], # max: 4; OPTIONAL
168 CaptionSources => [
169 {
170 Encryption => {
171 InitializationVector =>
172 'MyZeroTo255String', # max: 255; OPTIONAL
173 Key => 'MyBase64EncodedString', # OPTIONAL
174 KeyMd5 => 'MyBase64EncodedString', # OPTIONAL
175 Mode => 'MyEncryptionMode', # OPTIONAL
176 }, # OPTIONAL
177 Key => 'MyLongKey', # min: 1, max: 1024; OPTIONAL
178 Label => 'MyName', # min: 1, max: 40; OPTIONAL
179 Language => 'MyKey', # min: 1, max: 255; OPTIONAL
180 TimeOffset => 'MyTimeOffset', # OPTIONAL
181 },
182 ...
183 ], # max: 20; OPTIONAL
184 MergePolicy => 'MyCaptionMergePolicy', # OPTIONAL
185 }, # OPTIONAL
186 Composition => [
187 {
188 TimeSpan => {
189 Duration => 'MyTime', # OPTIONAL
190 StartTime => 'MyTime', # OPTIONAL
191 }, # OPTIONAL
192 },
193 ...
194 ], # OPTIONAL
195 Encryption => {
196 InitializationVector => 'MyZeroTo255String', # max: 255; OPTIONAL
197 Key => 'MyBase64EncodedString', # OPTIONAL
198 KeyMd5 => 'MyBase64EncodedString', # OPTIONAL
199 Mode => 'MyEncryptionMode', # OPTIONAL
200 }, # OPTIONAL
201 Key => 'MyKey', # min: 1, max: 255; OPTIONAL
202 PresetId => 'MyId',
203 Rotate => 'MyRotate', # OPTIONAL
204 SegmentDuration => 'MyFloatString', # OPTIONAL
205 ThumbnailEncryption => {
206 InitializationVector => 'MyZeroTo255String', # max: 255; OPTIONAL
207 Key => 'MyBase64EncodedString', # OPTIONAL
208 KeyMd5 => 'MyBase64EncodedString', # OPTIONAL
209 Mode => 'MyEncryptionMode', # OPTIONAL
210 }, # OPTIONAL
211 ThumbnailPattern => 'MyThumbnailPattern', # OPTIONAL
212 Watermarks => [
213 {
214 Encryption => {
215 InitializationVector => 'MyZeroTo255String', # max: 255; OPTIONAL
216 Key => 'MyBase64EncodedString', # OPTIONAL
217 KeyMd5 => 'MyBase64EncodedString', # OPTIONAL
218 Mode => 'MyEncryptionMode', # OPTIONAL
219 }, # OPTIONAL
220 InputKey => 'MyWatermarkKey', # min: 1, max: 1024; OPTIONAL
221 PresetWatermarkId =>
222 'MyPresetWatermarkId', # min: 1, max: 40; OPTIONAL
223 },
224 ...
225 ], # OPTIONAL
226 }, # OPTIONAL
227 OutputKeyPrefix => 'MyKey', # OPTIONAL
228 Outputs => [
229 {
230 AlbumArt => {
231 Artwork => [
232 {
233 AlbumArtFormat => 'MyJpgOrPng', # OPTIONAL
234 Encryption => {
235 InitializationVector =>
236 'MyZeroTo255String', # max: 255; OPTIONAL
237 Key => 'MyBase64EncodedString', # OPTIONAL
238 KeyMd5 => 'MyBase64EncodedString', # OPTIONAL
239 Mode => 'MyEncryptionMode', # OPTIONAL
240 }, # OPTIONAL
241 InputKey => 'MyWatermarkKey', # min: 1, max: 1024; OPTIONAL
242 MaxHeight => 'MyDigitsOrAuto', # OPTIONAL
243 MaxWidth => 'MyDigitsOrAuto', # OPTIONAL
244 PaddingPolicy => 'MyPaddingPolicy', # OPTIONAL
245 SizingPolicy => 'MySizingPolicy', # OPTIONAL
246 },
247 ...
248 ], # OPTIONAL
249 MergePolicy => 'MyMergePolicy', # OPTIONAL
250 }, # OPTIONAL
251 Captions => {
252 CaptionFormats => [
253 {
254 Encryption => {
255 InitializationVector =>
256 'MyZeroTo255String', # max: 255; OPTIONAL
257 Key => 'MyBase64EncodedString', # OPTIONAL
258 KeyMd5 => 'MyBase64EncodedString', # OPTIONAL
259 Mode => 'MyEncryptionMode', # OPTIONAL
260 }, # OPTIONAL
261 Format => 'MyCaptionFormatFormat', # OPTIONAL
262 Pattern => 'MyCaptionFormatPattern', # OPTIONAL
263 },
264 ...
265 ], # max: 4; OPTIONAL
266 CaptionSources => [
267 {
268 Encryption => {
269 InitializationVector =>
270 'MyZeroTo255String', # max: 255; OPTIONAL
271 Key => 'MyBase64EncodedString', # OPTIONAL
272 KeyMd5 => 'MyBase64EncodedString', # OPTIONAL
273 Mode => 'MyEncryptionMode', # OPTIONAL
274 }, # OPTIONAL
275 Key => 'MyLongKey', # min: 1, max: 1024; OPTIONAL
276 Label => 'MyName', # min: 1, max: 40; OPTIONAL
277 Language => 'MyKey', # min: 1, max: 255; OPTIONAL
278 TimeOffset => 'MyTimeOffset', # OPTIONAL
279 },
280 ...
281 ], # max: 20; OPTIONAL
282 MergePolicy => 'MyCaptionMergePolicy', # OPTIONAL
283 }, # OPTIONAL
284 Composition => [
285 {
286 TimeSpan => {
287 Duration => 'MyTime', # OPTIONAL
288 StartTime => 'MyTime', # OPTIONAL
289 }, # OPTIONAL
290 },
291 ...
292 ], # OPTIONAL
293 Encryption => {
294 InitializationVector => 'MyZeroTo255String', # max: 255; OPTIONAL
295 Key => 'MyBase64EncodedString', # OPTIONAL
296 KeyMd5 => 'MyBase64EncodedString', # OPTIONAL
297 Mode => 'MyEncryptionMode', # OPTIONAL
298 }, # OPTIONAL
299 Key => 'MyKey', # min: 1, max: 255; OPTIONAL
300 PresetId => 'MyId',
301 Rotate => 'MyRotate', # OPTIONAL
302 SegmentDuration => 'MyFloatString', # OPTIONAL
303 ThumbnailEncryption => {
304 InitializationVector => 'MyZeroTo255String', # max: 255; OPTIONAL
305 Key => 'MyBase64EncodedString', # OPTIONAL
306 KeyMd5 => 'MyBase64EncodedString', # OPTIONAL
307 Mode => 'MyEncryptionMode', # OPTIONAL
308 }, # OPTIONAL
309 ThumbnailPattern => 'MyThumbnailPattern', # OPTIONAL
310 Watermarks => [
311 {
312 Encryption => {
313 InitializationVector =>
314 'MyZeroTo255String', # max: 255; OPTIONAL
315 Key => 'MyBase64EncodedString', # OPTIONAL
316 KeyMd5 => 'MyBase64EncodedString', # OPTIONAL
317 Mode => 'MyEncryptionMode', # OPTIONAL
318 }, # OPTIONAL
319 InputKey => 'MyWatermarkKey', # min: 1, max: 1024; OPTIONAL
320 PresetWatermarkId =>
321 'MyPresetWatermarkId', # min: 1, max: 40; OPTIONAL
322 },
323 ...
324 ], # OPTIONAL
325 },
326 ...
327 ], # OPTIONAL
328 Playlists => [
329 {
330 Format => 'MyPlaylistFormat', # OPTIONAL
331 HlsContentProtection => {
332 InitializationVector => 'MyZeroTo255String', # max: 255; OPTIONAL
333 Key => 'MyBase64EncodedString', # OPTIONAL
334 KeyMd5 => 'MyBase64EncodedString', # OPTIONAL
335 KeyStoragePolicy => 'MyKeyStoragePolicy', # OPTIONAL
336 LicenseAcquisitionUrl => 'MyZeroTo512String', # max: 512; OPTIONAL
337 Method => 'MyHlsContentProtectionMethod', # OPTIONAL
338 }, # OPTIONAL
339 Name => 'MyFilename', # min: 1, max: 255; OPTIONAL
340 OutputKeys => [
341 'MyKey', ... # min: 1, max: 255; OPTIONAL
342 ], # max: 30; OPTIONAL
343 PlayReadyDrm => {
344 Format => 'MyPlayReadyDrmFormatString', # OPTIONAL
345 InitializationVector => 'MyZeroTo255String', # max: 255; OPTIONAL
346 Key => 'MyNonEmptyBase64EncodedString', # OPTIONAL
347 KeyId => 'MyKeyIdGuid', # OPTIONAL
348 KeyMd5 => 'MyNonEmptyBase64EncodedString', # OPTIONAL
349 LicenseAcquisitionUrl =>
350 'MyOneTo512String', # min: 1, max: 512; OPTIONAL
351 }, # OPTIONAL
352 },
353 ...
354 ], # OPTIONAL
355 UserMetadata => { 'MyString' => 'MyString', }, # OPTIONAL
356 );
357  
358 # Results:
359 my $Job = $CreateJobResponse->Job;
360  
361 # Returns a L<Paws::ElasticTranscoder::CreateJobResponse> object.
362  
363 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.
364 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elastictranscoder/CreateJob>
365  
366 =head1 ATTRIBUTES
367  
368  
369 =head2 Input => L<Paws::ElasticTranscoder::JobInput>
370  
371 A section of the request body that provides information about the file
372 that is being transcoded.
373  
374  
375  
376 =head2 Inputs => ArrayRef[L<Paws::ElasticTranscoder::JobInput>]
377  
378 A section of the request body that provides information about the files
379 that are being transcoded.
380  
381  
382  
383 =head2 Output => L<Paws::ElasticTranscoder::CreateJobOutput>
384  
385 A section of the request body that provides information about the
386 transcoded (target) file. We strongly recommend that you use the
387 C<Outputs> syntax instead of the C<Output> syntax.
388  
389  
390  
391 =head2 OutputKeyPrefix => Str
392  
393 The value, if any, that you want Elastic Transcoder to prepend to the
394 names of all files that this job creates, including output files,
395 thumbnails, and playlists.
396  
397  
398  
399 =head2 Outputs => ArrayRef[L<Paws::ElasticTranscoder::CreateJobOutput>]
400  
401 A section of the request body that provides information about the
402 transcoded (target) files. We recommend that you use the C<Outputs>
403 syntax instead of the C<Output> syntax.
404  
405  
406  
407 =head2 B<REQUIRED> PipelineId => Str
408  
409 The C<Id> of the pipeline that you want Elastic Transcoder to use for
410 transcoding. The pipeline determines several settings, including the
411 Amazon S3 bucket from which Elastic Transcoder gets the files to
412 transcode and the bucket into which Elastic Transcoder puts the
413 transcoded files.
414  
415  
416  
417 =head2 Playlists => ArrayRef[L<Paws::ElasticTranscoder::CreateJobPlaylist>]
418  
419 If you specify a preset in C<PresetId> for which the value of
420 C<Container> is fmp4 (Fragmented MP4) or ts (MPEG-TS), Playlists
421 contains information about the master playlists that you want Elastic
422 Transcoder to create.
423  
424 The maximum number of master playlists in a job is 30.
425  
426  
427  
428 =head2 UserMetadata => L<Paws::ElasticTranscoder::UserMetadata>
429  
430 User-defined metadata that you want to associate with an Elastic
431 Transcoder job. You specify metadata in C<key/value> pairs, and you can
432 add up to 10 C<key/value> pairs per job. Elastic Transcoder does not
433 guarantee that C<key/value> pairs are returned in the same order in
434 which you specify them.
435  
436  
437  
438  
439 =head1 SEE ALSO
440  
441 This class forms part of L<Paws>, documenting arguments for method CreateJob in L<Paws::ElasticTranscoder>
442  
443 =head1 BUGS and CONTRIBUTIONS
444  
445 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
446  
447 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
448  
449 =cut
450