blib/lib/Paws/MediaPackageVod.pm untested

filter: Statementstmt 0.0% 0 / 124 Branchbran 0.0% 0 / 12 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 26 Podpod 0.0% 0 / 25 totaltotal 0.0% 0 / 187 CC 7 SCAR 15.7
CC
7
Cov
0%
ListAllAssets
12.0
ListAllPackagingConfigurations
12.0
ListAllPackagingGroups
12.0
CRAP 4.8
1 package Paws::MediaPackageVod;
2 use Moose;
3 sub service { 'mediapackage-vod' }
4 sub signing_name { 'mediapackage-vod' }
5 sub version { '2018-11-07' }
6 sub flattened_arrays { 0 }
7 has max_attempts => (is => 'ro', isa => 'Int', default => 5);
8 has retry => (is => 'ro', isa => 'HashRef', default => sub {
9 { base => 'rand', type => 'exponential', growth_factor => 2 }
10 });
11 has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [
12 ] });
13  
14 with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::RestJsonCaller';
15  
16
17 sub ConfigureLogs {
18 my $self = shift;
19 my $call_object = $self->new_with_coercions('Paws::MediaPackageVod::ConfigureLogs', @_);
20 return $self->caller->do_call($self, $call_object);
21 }
22 sub CreateAsset {
23 my $self = shift;
24 my $call_object = $self->new_with_coercions('Paws::MediaPackageVod::CreateAsset', @_);
25 return $self->caller->do_call($self, $call_object);
26 }
27 sub CreatePackagingConfiguration {
28 my $self = shift;
29 my $call_object = $self->new_with_coercions('Paws::MediaPackageVod::CreatePackagingConfiguration', @_);
30 return $self->caller->do_call($self, $call_object);
31 }
32 sub CreatePackagingGroup {
33 my $self = shift;
34 my $call_object = $self->new_with_coercions('Paws::MediaPackageVod::CreatePackagingGroup', @_);
35 return $self->caller->do_call($self, $call_object);
36 }
37 sub DeleteAsset {
38 my $self = shift;
39 my $call_object = $self->new_with_coercions('Paws::MediaPackageVod::DeleteAsset', @_);
40 return $self->caller->do_call($self, $call_object);
41 }
42 sub DeletePackagingConfiguration {
43 my $self = shift;
44 my $call_object = $self->new_with_coercions('Paws::MediaPackageVod::DeletePackagingConfiguration', @_);
45 return $self->caller->do_call($self, $call_object);
46 }
47 sub DeletePackagingGroup {
48 my $self = shift;
49 my $call_object = $self->new_with_coercions('Paws::MediaPackageVod::DeletePackagingGroup', @_);
50 return $self->caller->do_call($self, $call_object);
51 }
52 sub DescribeAsset {
53 my $self = shift;
54 my $call_object = $self->new_with_coercions('Paws::MediaPackageVod::DescribeAsset', @_);
55 return $self->caller->do_call($self, $call_object);
56 }
57 sub DescribePackagingConfiguration {
58 my $self = shift;
59 my $call_object = $self->new_with_coercions('Paws::MediaPackageVod::DescribePackagingConfiguration', @_);
60 return $self->caller->do_call($self, $call_object);
61 }
62 sub DescribePackagingGroup {
63 my $self = shift;
64 my $call_object = $self->new_with_coercions('Paws::MediaPackageVod::DescribePackagingGroup', @_);
65 return $self->caller->do_call($self, $call_object);
66 }
67 sub ListAssets {
68 my $self = shift;
69 my $call_object = $self->new_with_coercions('Paws::MediaPackageVod::ListAssets', @_);
70 return $self->caller->do_call($self, $call_object);
71 }
72 sub ListPackagingConfigurations {
73 my $self = shift;
74 my $call_object = $self->new_with_coercions('Paws::MediaPackageVod::ListPackagingConfigurations', @_);
75 return $self->caller->do_call($self, $call_object);
76 }
77 sub ListPackagingGroups {
78 my $self = shift;
79 my $call_object = $self->new_with_coercions('Paws::MediaPackageVod::ListPackagingGroups', @_);
80 return $self->caller->do_call($self, $call_object);
81 }
82 sub ListTagsForResource {
83 my $self = shift;
84 my $call_object = $self->new_with_coercions('Paws::MediaPackageVod::ListTagsForResource', @_);
85 return $self->caller->do_call($self, $call_object);
86 }
87 sub TagResource {
88 my $self = shift;
89 my $call_object = $self->new_with_coercions('Paws::MediaPackageVod::TagResource', @_);
90 return $self->caller->do_call($self, $call_object);
91 }
92 sub UntagResource {
93 my $self = shift;
94 my $call_object = $self->new_with_coercions('Paws::MediaPackageVod::UntagResource', @_);
95 return $self->caller->do_call($self, $call_object);
96 }
97 sub UpdatePackagingGroup {
98 my $self = shift;
99 my $call_object = $self->new_with_coercions('Paws::MediaPackageVod::UpdatePackagingGroup', @_);
100 return $self->caller->do_call($self, $call_object);
101 }
102
103 sub ListAllAssets {
104 my $self = shift;
105  
106 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
107 my $result = $self->ListAssets(@_);
108 my $next_result = $result;
109  
110 if (not defined $callback) {
111 while ($next_result->NextToken) {
112 $next_result = $self->ListAssets(@_, NextToken => $next_result->NextToken);
113 push @{ $result->Assets }, @{ $next_result->Assets };
114 }
115 return $result;
116 } else {
117 while ($result->NextToken) {
118 $callback->($_ => 'Assets') foreach (@{ $result->Assets });
119 $result = $self->ListAssets(@_, NextToken => $result->NextToken);
120 }
121 $callback->($_ => 'Assets') foreach (@{ $result->Assets });
122 }
123  
124 return undef
125 }
126 sub ListAllPackagingConfigurations {
127 my $self = shift;
128  
129 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
130 my $result = $self->ListPackagingConfigurations(@_);
131 my $next_result = $result;
132  
133 if (not defined $callback) {
134 while ($next_result->NextToken) {
135 $next_result = $self->ListPackagingConfigurations(@_, NextToken => $next_result->NextToken);
136 push @{ $result->PackagingConfigurations }, @{ $next_result->PackagingConfigurations };
137 }
138 return $result;
139 } else {
140 while ($result->NextToken) {
141 $callback->($_ => 'PackagingConfigurations') foreach (@{ $result->PackagingConfigurations });
142 $result = $self->ListPackagingConfigurations(@_, NextToken => $result->NextToken);
143 }
144 $callback->($_ => 'PackagingConfigurations') foreach (@{ $result->PackagingConfigurations });
145 }
146  
147 return undef
148 }
149 sub ListAllPackagingGroups {
150 my $self = shift;
151  
152 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
153 my $result = $self->ListPackagingGroups(@_);
154 my $next_result = $result;
155  
156 if (not defined $callback) {
157 while ($next_result->NextToken) {
158 $next_result = $self->ListPackagingGroups(@_, NextToken => $next_result->NextToken);
159 push @{ $result->PackagingGroups }, @{ $next_result->PackagingGroups };
160 }
161 return $result;
162 } else {
163 while ($result->NextToken) {
164 $callback->($_ => 'PackagingGroups') foreach (@{ $result->PackagingGroups });
165 $result = $self->ListPackagingGroups(@_, NextToken => $result->NextToken);
166 }
167 $callback->($_ => 'PackagingGroups') foreach (@{ $result->PackagingGroups });
168 }
169  
170 return undef
171 }
172  
173  
174 sub operations { qw/ConfigureLogs CreateAsset CreatePackagingConfiguration CreatePackagingGroup DeleteAsset DeletePackagingConfiguration DeletePackagingGroup DescribeAsset DescribePackagingConfiguration DescribePackagingGroup ListAssets ListPackagingConfigurations ListPackagingGroups ListTagsForResource TagResource UntagResource UpdatePackagingGroup / }
175  
176 1;
177  
178 ### main pod documentation begin ###
179  
180 =head1 NAME
181  
182 Paws::MediaPackageVod - Perl Interface to AWS AWS Elemental MediaPackage VOD
183  
184 =head1 SYNOPSIS
185  
186 use Paws;
187  
188 my $obj = Paws->service('MediaPackageVod');
189 my $res = $obj->Method(
190 Arg1 => $val1,
191 Arg2 => [ 'V1', 'V2' ],
192 # if Arg3 is an object, the HashRef will be used as arguments to the constructor
193 # of the arguments type
194 Arg3 => { Att1 => 'Val1' },
195 # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
196 # the constructor of the arguments type
197 Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
198 );
199  
200 =head1 DESCRIPTION
201  
202 AWS Elemental MediaPackage VOD
203  
204 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07>
205  
206  
207 =head1 METHODS
208  
209 =head2 ConfigureLogs
210  
211 =over
212  
213 =item Id => Str
214  
215 =item [EgressAccessLogs => L<Paws::MediaPackageVod::EgressAccessLogs>]
216  
217  
218 =back
219  
220 Each argument is described in detail in: L<Paws::MediaPackageVod::ConfigureLogs>
221  
222 Returns: a L<Paws::MediaPackageVod::ConfigureLogsResponse> instance
223  
224 Changes the packaging group's properities to configure log subscription
225  
226  
227 =head2 CreateAsset
228  
229 =over
230  
231 =item Id => Str
232  
233 =item PackagingGroupId => Str
234  
235 =item SourceArn => Str
236  
237 =item SourceRoleArn => Str
238  
239 =item [ResourceId => Str]
240  
241 =item [Tags => L<Paws::MediaPackageVod::Tags>]
242  
243  
244 =back
245  
246 Each argument is described in detail in: L<Paws::MediaPackageVod::CreateAsset>
247  
248 Returns: a L<Paws::MediaPackageVod::CreateAssetResponse> instance
249  
250 Creates a new MediaPackage VOD Asset resource.
251  
252  
253 =head2 CreatePackagingConfiguration
254  
255 =over
256  
257 =item Id => Str
258  
259 =item PackagingGroupId => Str
260  
261 =item [CmafPackage => L<Paws::MediaPackageVod::CmafPackage>]
262  
263 =item [DashPackage => L<Paws::MediaPackageVod::DashPackage>]
264  
265 =item [HlsPackage => L<Paws::MediaPackageVod::HlsPackage>]
266  
267 =item [MssPackage => L<Paws::MediaPackageVod::MssPackage>]
268  
269 =item [Tags => L<Paws::MediaPackageVod::Tags>]
270  
271  
272 =back
273  
274 Each argument is described in detail in: L<Paws::MediaPackageVod::CreatePackagingConfiguration>
275  
276 Returns: a L<Paws::MediaPackageVod::CreatePackagingConfigurationResponse> instance
277  
278 Creates a new MediaPackage VOD PackagingConfiguration resource.
279  
280  
281 =head2 CreatePackagingGroup
282  
283 =over
284  
285 =item Id => Str
286  
287 =item [Authorization => L<Paws::MediaPackageVod::Authorization>]
288  
289 =item [EgressAccessLogs => L<Paws::MediaPackageVod::EgressAccessLogs>]
290  
291 =item [Tags => L<Paws::MediaPackageVod::Tags>]
292  
293  
294 =back
295  
296 Each argument is described in detail in: L<Paws::MediaPackageVod::CreatePackagingGroup>
297  
298 Returns: a L<Paws::MediaPackageVod::CreatePackagingGroupResponse> instance
299  
300 Creates a new MediaPackage VOD PackagingGroup resource.
301  
302  
303 =head2 DeleteAsset
304  
305 =over
306  
307 =item Id => Str
308  
309  
310 =back
311  
312 Each argument is described in detail in: L<Paws::MediaPackageVod::DeleteAsset>
313  
314 Returns: a L<Paws::MediaPackageVod::DeleteAssetResponse> instance
315  
316 Deletes an existing MediaPackage VOD Asset resource.
317  
318  
319 =head2 DeletePackagingConfiguration
320  
321 =over
322  
323 =item Id => Str
324  
325  
326 =back
327  
328 Each argument is described in detail in: L<Paws::MediaPackageVod::DeletePackagingConfiguration>
329  
330 Returns: a L<Paws::MediaPackageVod::DeletePackagingConfigurationResponse> instance
331  
332 Deletes a MediaPackage VOD PackagingConfiguration resource.
333  
334  
335 =head2 DeletePackagingGroup
336  
337 =over
338  
339 =item Id => Str
340  
341  
342 =back
343  
344 Each argument is described in detail in: L<Paws::MediaPackageVod::DeletePackagingGroup>
345  
346 Returns: a L<Paws::MediaPackageVod::DeletePackagingGroupResponse> instance
347  
348 Deletes a MediaPackage VOD PackagingGroup resource.
349  
350  
351 =head2 DescribeAsset
352  
353 =over
354  
355 =item Id => Str
356  
357  
358 =back
359  
360 Each argument is described in detail in: L<Paws::MediaPackageVod::DescribeAsset>
361  
362 Returns: a L<Paws::MediaPackageVod::DescribeAssetResponse> instance
363  
364 Returns a description of a MediaPackage VOD Asset resource.
365  
366  
367 =head2 DescribePackagingConfiguration
368  
369 =over
370  
371 =item Id => Str
372  
373  
374 =back
375  
376 Each argument is described in detail in: L<Paws::MediaPackageVod::DescribePackagingConfiguration>
377  
378 Returns: a L<Paws::MediaPackageVod::DescribePackagingConfigurationResponse> instance
379  
380 Returns a description of a MediaPackage VOD PackagingConfiguration
381 resource.
382  
383  
384 =head2 DescribePackagingGroup
385  
386 =over
387  
388 =item Id => Str
389  
390  
391 =back
392  
393 Each argument is described in detail in: L<Paws::MediaPackageVod::DescribePackagingGroup>
394  
395 Returns: a L<Paws::MediaPackageVod::DescribePackagingGroupResponse> instance
396  
397 Returns a description of a MediaPackage VOD PackagingGroup resource.
398  
399  
400 =head2 ListAssets
401  
402 =over
403  
404 =item [MaxResults => Int]
405  
406 =item [NextToken => Str]
407  
408 =item [PackagingGroupId => Str]
409  
410  
411 =back
412  
413 Each argument is described in detail in: L<Paws::MediaPackageVod::ListAssets>
414  
415 Returns: a L<Paws::MediaPackageVod::ListAssetsResponse> instance
416  
417 Returns a collection of MediaPackage VOD Asset resources.
418  
419  
420 =head2 ListPackagingConfigurations
421  
422 =over
423  
424 =item [MaxResults => Int]
425  
426 =item [NextToken => Str]
427  
428 =item [PackagingGroupId => Str]
429  
430  
431 =back
432  
433 Each argument is described in detail in: L<Paws::MediaPackageVod::ListPackagingConfigurations>
434  
435 Returns: a L<Paws::MediaPackageVod::ListPackagingConfigurationsResponse> instance
436  
437 Returns a collection of MediaPackage VOD PackagingConfiguration
438 resources.
439  
440  
441 =head2 ListPackagingGroups
442  
443 =over
444  
445 =item [MaxResults => Int]
446  
447 =item [NextToken => Str]
448  
449  
450 =back
451  
452 Each argument is described in detail in: L<Paws::MediaPackageVod::ListPackagingGroups>
453  
454 Returns: a L<Paws::MediaPackageVod::ListPackagingGroupsResponse> instance
455  
456 Returns a collection of MediaPackage VOD PackagingGroup resources.
457  
458  
459 =head2 ListTagsForResource
460  
461 =over
462  
463 =item ResourceArn => Str
464  
465  
466 =back
467  
468 Each argument is described in detail in: L<Paws::MediaPackageVod::ListTagsForResource>
469  
470 Returns: a L<Paws::MediaPackageVod::ListTagsForResourceResponse> instance
471  
472 Returns a list of the tags assigned to the specified resource.
473  
474  
475 =head2 TagResource
476  
477 =over
478  
479 =item ResourceArn => Str
480  
481 =item Tags => L<Paws::MediaPackageVod::__mapOf__string>
482  
483  
484 =back
485  
486 Each argument is described in detail in: L<Paws::MediaPackageVod::TagResource>
487  
488 Returns: nothing
489  
490 Adds tags to the specified resource. You can specify one or more tags
491 to add.
492  
493  
494 =head2 UntagResource
495  
496 =over
497  
498 =item ResourceArn => Str
499  
500 =item TagKeys => ArrayRef[Str|Undef]
501  
502  
503 =back
504  
505 Each argument is described in detail in: L<Paws::MediaPackageVod::UntagResource>
506  
507 Returns: nothing
508  
509 Removes tags from the specified resource. You can specify one or more
510 tags to remove.
511  
512  
513 =head2 UpdatePackagingGroup
514  
515 =over
516  
517 =item Id => Str
518  
519 =item [Authorization => L<Paws::MediaPackageVod::Authorization>]
520  
521  
522 =back
523  
524 Each argument is described in detail in: L<Paws::MediaPackageVod::UpdatePackagingGroup>
525  
526 Returns: a L<Paws::MediaPackageVod::UpdatePackagingGroupResponse> instance
527  
528 Updates a specific packaging group. You can't change the id attribute
529 or any other system-generated attributes.
530  
531  
532  
533  
534 =head1 PAGINATORS
535  
536 Paginator methods are helpers that repetively call methods that return partial results
537  
538 =head2 ListAllAssets(sub { },[MaxResults => Int, NextToken => Str, PackagingGroupId => Str])
539  
540 =head2 ListAllAssets([MaxResults => Int, NextToken => Str, PackagingGroupId => Str])
541  
542  
543 If passed a sub as first parameter, it will call the sub for each element found in :
544  
545 - Assets, passing the object as the first parameter, and the string 'Assets' as the second parameter
546  
547 If not, it will return a a L<Paws::MediaPackageVod::ListAssetsResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory.
548  
549  
550 =head2 ListAllPackagingConfigurations(sub { },[MaxResults => Int, NextToken => Str, PackagingGroupId => Str])
551  
552 =head2 ListAllPackagingConfigurations([MaxResults => Int, NextToken => Str, PackagingGroupId => Str])
553  
554  
555 If passed a sub as first parameter, it will call the sub for each element found in :
556  
557 - PackagingConfigurations, passing the object as the first parameter, and the string 'PackagingConfigurations' as the second parameter
558  
559 If not, it will return a a L<Paws::MediaPackageVod::ListPackagingConfigurationsResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory.
560  
561  
562 =head2 ListAllPackagingGroups(sub { },[MaxResults => Int, NextToken => Str])
563  
564 =head2 ListAllPackagingGroups([MaxResults => Int, NextToken => Str])
565  
566  
567 If passed a sub as first parameter, it will call the sub for each element found in :
568  
569 - PackagingGroups, passing the object as the first parameter, and the string 'PackagingGroups' as the second parameter
570  
571 If not, it will return a a L<Paws::MediaPackageVod::ListPackagingGroupsResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory.
572  
573  
574  
575  
576  
577 =head1 SEE ALSO
578  
579 This service class forms part of L<Paws>
580  
581 =head1 BUGS and CONTRIBUTIONS
582  
583 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
584  
585 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
586  
587 =cut
588