blib/lib/Paws/DataExchange.pm untested

filter: Statementstmt 0.0% 0 / 159 Branchbran 0.0% 0 / 16 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 32 Podpod 0.0% 0 / 31 totaltotal 0.0% 0 / 238 CC 9 SCAR 16.1
CC
9
Cov
0%
ListAllDataSetRevisions
12.0
ListAllDataSets
12.0
ListAllJobs
12.0
CRAP 5.0
1 package Paws::DataExchange;
2 use Moose;
3 sub service { 'dataexchange' }
4 sub signing_name { 'dataexchange' }
5 sub version { '2017-07-25' }
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 CancelJob {
18 my $self = shift;
19 my $call_object = $self->new_with_coercions('Paws::DataExchange::CancelJob', @_);
20 return $self->caller->do_call($self, $call_object);
21 }
22 sub CreateDataSet {
23 my $self = shift;
24 my $call_object = $self->new_with_coercions('Paws::DataExchange::CreateDataSet', @_);
25 return $self->caller->do_call($self, $call_object);
26 }
27 sub CreateJob {
28 my $self = shift;
29 my $call_object = $self->new_with_coercions('Paws::DataExchange::CreateJob', @_);
30 return $self->caller->do_call($self, $call_object);
31 }
32 sub CreateRevision {
33 my $self = shift;
34 my $call_object = $self->new_with_coercions('Paws::DataExchange::CreateRevision', @_);
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::DataExchange::DeleteAsset', @_);
40 return $self->caller->do_call($self, $call_object);
41 }
42 sub DeleteDataSet {
43 my $self = shift;
44 my $call_object = $self->new_with_coercions('Paws::DataExchange::DeleteDataSet', @_);
45 return $self->caller->do_call($self, $call_object);
46 }
47 sub DeleteRevision {
48 my $self = shift;
49 my $call_object = $self->new_with_coercions('Paws::DataExchange::DeleteRevision', @_);
50 return $self->caller->do_call($self, $call_object);
51 }
52 sub GetAsset {
53 my $self = shift;
54 my $call_object = $self->new_with_coercions('Paws::DataExchange::GetAsset', @_);
55 return $self->caller->do_call($self, $call_object);
56 }
57 sub GetDataSet {
58 my $self = shift;
59 my $call_object = $self->new_with_coercions('Paws::DataExchange::GetDataSet', @_);
60 return $self->caller->do_call($self, $call_object);
61 }
62 sub GetJob {
63 my $self = shift;
64 my $call_object = $self->new_with_coercions('Paws::DataExchange::GetJob', @_);
65 return $self->caller->do_call($self, $call_object);
66 }
67 sub GetRevision {
68 my $self = shift;
69 my $call_object = $self->new_with_coercions('Paws::DataExchange::GetRevision', @_);
70 return $self->caller->do_call($self, $call_object);
71 }
72 sub ListDataSetRevisions {
73 my $self = shift;
74 my $call_object = $self->new_with_coercions('Paws::DataExchange::ListDataSetRevisions', @_);
75 return $self->caller->do_call($self, $call_object);
76 }
77 sub ListDataSets {
78 my $self = shift;
79 my $call_object = $self->new_with_coercions('Paws::DataExchange::ListDataSets', @_);
80 return $self->caller->do_call($self, $call_object);
81 }
82 sub ListJobs {
83 my $self = shift;
84 my $call_object = $self->new_with_coercions('Paws::DataExchange::ListJobs', @_);
85 return $self->caller->do_call($self, $call_object);
86 }
87 sub ListRevisionAssets {
88 my $self = shift;
89 my $call_object = $self->new_with_coercions('Paws::DataExchange::ListRevisionAssets', @_);
90 return $self->caller->do_call($self, $call_object);
91 }
92 sub ListTagsForResource {
93 my $self = shift;
94 my $call_object = $self->new_with_coercions('Paws::DataExchange::ListTagsForResource', @_);
95 return $self->caller->do_call($self, $call_object);
96 }
97 sub StartJob {
98 my $self = shift;
99 my $call_object = $self->new_with_coercions('Paws::DataExchange::StartJob', @_);
100 return $self->caller->do_call($self, $call_object);
101 }
102 sub TagResource {
103 my $self = shift;
104 my $call_object = $self->new_with_coercions('Paws::DataExchange::TagResource', @_);
105 return $self->caller->do_call($self, $call_object);
106 }
107 sub UntagResource {
108 my $self = shift;
109 my $call_object = $self->new_with_coercions('Paws::DataExchange::UntagResource', @_);
110 return $self->caller->do_call($self, $call_object);
111 }
112 sub UpdateAsset {
113 my $self = shift;
114 my $call_object = $self->new_with_coercions('Paws::DataExchange::UpdateAsset', @_);
115 return $self->caller->do_call($self, $call_object);
116 }
117 sub UpdateDataSet {
118 my $self = shift;
119 my $call_object = $self->new_with_coercions('Paws::DataExchange::UpdateDataSet', @_);
120 return $self->caller->do_call($self, $call_object);
121 }
122 sub UpdateRevision {
123 my $self = shift;
124 my $call_object = $self->new_with_coercions('Paws::DataExchange::UpdateRevision', @_);
125 return $self->caller->do_call($self, $call_object);
126 }
127
128 sub ListAllDataSetRevisions {
129 my $self = shift;
130  
131 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
132 my $result = $self->ListDataSetRevisions(@_);
133 my $next_result = $result;
134  
135 if (not defined $callback) {
136 while ($next_result->NextToken) {
137 $next_result = $self->ListDataSetRevisions(@_, NextToken => $next_result->NextToken);
138 push @{ $result->Revisions }, @{ $next_result->Revisions };
139 }
140 return $result;
141 } else {
142 while ($result->NextToken) {
143 $callback->($_ => 'Revisions') foreach (@{ $result->Revisions });
144 $result = $self->ListDataSetRevisions(@_, NextToken => $result->NextToken);
145 }
146 $callback->($_ => 'Revisions') foreach (@{ $result->Revisions });
147 }
148  
149 return undef
150 }
151 sub ListAllDataSets {
152 my $self = shift;
153  
154 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
155 my $result = $self->ListDataSets(@_);
156 my $next_result = $result;
157  
158 if (not defined $callback) {
159 while ($next_result->NextToken) {
160 $next_result = $self->ListDataSets(@_, NextToken => $next_result->NextToken);
161 push @{ $result->DataSets }, @{ $next_result->DataSets };
162 }
163 return $result;
164 } else {
165 while ($result->NextToken) {
166 $callback->($_ => 'DataSets') foreach (@{ $result->DataSets });
167 $result = $self->ListDataSets(@_, NextToken => $result->NextToken);
168 }
169 $callback->($_ => 'DataSets') foreach (@{ $result->DataSets });
170 }
171  
172 return undef
173 }
174 sub ListAllJobs {
175 my $self = shift;
176  
177 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
178 my $result = $self->ListJobs(@_);
179 my $next_result = $result;
180  
181 if (not defined $callback) {
182 while ($next_result->NextToken) {
183 $next_result = $self->ListJobs(@_, NextToken => $next_result->NextToken);
184 push @{ $result->Jobs }, @{ $next_result->Jobs };
185 }
186 return $result;
187 } else {
188 while ($result->NextToken) {
189 $callback->($_ => 'Jobs') foreach (@{ $result->Jobs });
190 $result = $self->ListJobs(@_, NextToken => $result->NextToken);
191 }
192 $callback->($_ => 'Jobs') foreach (@{ $result->Jobs });
193 }
194  
195 return undef
196 }
197 sub ListAllRevisionAssets {
198 my $self = shift;
199  
200 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
201 my $result = $self->ListRevisionAssets(@_);
202 my $next_result = $result;
203  
204 if (not defined $callback) {
205 while ($next_result->NextToken) {
206 $next_result = $self->ListRevisionAssets(@_, NextToken => $next_result->NextToken);
207 push @{ $result->Assets }, @{ $next_result->Assets };
208 }
209 return $result;
210 } else {
211 while ($result->NextToken) {
212 $callback->($_ => 'Assets') foreach (@{ $result->Assets });
213 $result = $self->ListRevisionAssets(@_, NextToken => $result->NextToken);
214 }
215 $callback->($_ => 'Assets') foreach (@{ $result->Assets });
216 }
217  
218 return undef
219 }
220  
221  
222 sub operations { qw/CancelJob CreateDataSet CreateJob CreateRevision DeleteAsset DeleteDataSet DeleteRevision GetAsset GetDataSet GetJob GetRevision ListDataSetRevisions ListDataSets ListJobs ListRevisionAssets ListTagsForResource StartJob TagResource UntagResource UpdateAsset UpdateDataSet UpdateRevision / }
223  
224 1;
225  
226 ### main pod documentation begin ###
227  
228 =head1 NAME
229  
230 Paws::DataExchange - Perl Interface to AWS AWS Data Exchange
231  
232 =head1 SYNOPSIS
233  
234 use Paws;
235  
236 my $obj = Paws->service('DataExchange');
237 my $res = $obj->Method(
238 Arg1 => $val1,
239 Arg2 => [ 'V1', 'V2' ],
240 # if Arg3 is an object, the HashRef will be used as arguments to the constructor
241 # of the arguments type
242 Arg3 => { Att1 => 'Val1' },
243 # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
244 # the constructor of the arguments type
245 Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
246 );
247  
248 =head1 DESCRIPTION
249  
250 AWS Data Exchange is a service that makes it easy for AWS customers to
251 exchange data in the cloud. You can use the AWS Data Exchange APIs to
252 create, update, manage, and access file-based data set in the AWS
253 Cloud.
254  
255 As a subscriber, you can view and access the data sets that you have an
256 entitlement to through a subscription. You can use the APIS to download
257 or copy your entitled data sets to Amazon S3 for use across a variety
258 of AWS analytics and machine learning services.
259  
260 As a provider, you can create and manage your data sets that you would
261 like to publish to a product. Being able to package and provide your
262 data sets into products requires a few steps to determine eligibility.
263 For more information, visit the AWS Data Exchange User Guide.
264  
265 A data set is a collection of data that can be changed or updated over
266 time. Data sets can be updated using revisions, which represent a new
267 version or incremental change to a data set. A revision contains one or
268 more assets. An asset in AWS Data Exchange is a piece of data that can
269 be stored as an Amazon S3 object. The asset can be a structured data
270 file, an image file, or some other data file. Jobs are asynchronous
271 import or export operations used to create or copy assets.
272  
273 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25>
274  
275  
276 =head1 METHODS
277  
278 =head2 CancelJob
279  
280 =over
281  
282 =item JobId => Str
283  
284  
285 =back
286  
287 Each argument is described in detail in: L<Paws::DataExchange::CancelJob>
288  
289 Returns: nothing
290  
291 This operation cancels a job. Jobs can be cancelled only when they are
292 in the WAITING state.
293  
294  
295 =head2 CreateDataSet
296  
297 =over
298  
299 =item AssetType => Str
300  
301 =item Description => Str
302  
303 =item Name => Str
304  
305 =item [Tags => L<Paws::DataExchange::MapOf__string>]
306  
307  
308 =back
309  
310 Each argument is described in detail in: L<Paws::DataExchange::CreateDataSet>
311  
312 Returns: a L<Paws::DataExchange::CreateDataSetResponse> instance
313  
314 This operation creates a data set.
315  
316  
317 =head2 CreateJob
318  
319 =over
320  
321 =item Details => L<Paws::DataExchange::RequestDetails>
322  
323 =item Type => Str
324  
325  
326 =back
327  
328 Each argument is described in detail in: L<Paws::DataExchange::CreateJob>
329  
330 Returns: a L<Paws::DataExchange::CreateJobResponse> instance
331  
332 This operation creates a job.
333  
334  
335 =head2 CreateRevision
336  
337 =over
338  
339 =item DataSetId => Str
340  
341 =item [Comment => Str]
342  
343 =item [Tags => L<Paws::DataExchange::MapOf__string>]
344  
345  
346 =back
347  
348 Each argument is described in detail in: L<Paws::DataExchange::CreateRevision>
349  
350 Returns: a L<Paws::DataExchange::CreateRevisionResponse> instance
351  
352 This operation creates a revision for a data set.
353  
354  
355 =head2 DeleteAsset
356  
357 =over
358  
359 =item AssetId => Str
360  
361 =item DataSetId => Str
362  
363 =item RevisionId => Str
364  
365  
366 =back
367  
368 Each argument is described in detail in: L<Paws::DataExchange::DeleteAsset>
369  
370 Returns: nothing
371  
372 This operation deletes an asset.
373  
374  
375 =head2 DeleteDataSet
376  
377 =over
378  
379 =item DataSetId => Str
380  
381  
382 =back
383  
384 Each argument is described in detail in: L<Paws::DataExchange::DeleteDataSet>
385  
386 Returns: nothing
387  
388 This operation deletes a data set.
389  
390  
391 =head2 DeleteRevision
392  
393 =over
394  
395 =item DataSetId => Str
396  
397 =item RevisionId => Str
398  
399  
400 =back
401  
402 Each argument is described in detail in: L<Paws::DataExchange::DeleteRevision>
403  
404 Returns: nothing
405  
406 This operation deletes a revision.
407  
408  
409 =head2 GetAsset
410  
411 =over
412  
413 =item AssetId => Str
414  
415 =item DataSetId => Str
416  
417 =item RevisionId => Str
418  
419  
420 =back
421  
422 Each argument is described in detail in: L<Paws::DataExchange::GetAsset>
423  
424 Returns: a L<Paws::DataExchange::GetAssetResponse> instance
425  
426 This operation returns information about an asset.
427  
428  
429 =head2 GetDataSet
430  
431 =over
432  
433 =item DataSetId => Str
434  
435  
436 =back
437  
438 Each argument is described in detail in: L<Paws::DataExchange::GetDataSet>
439  
440 Returns: a L<Paws::DataExchange::GetDataSetResponse> instance
441  
442 This operation returns information about a data set.
443  
444  
445 =head2 GetJob
446  
447 =over
448  
449 =item JobId => Str
450  
451  
452 =back
453  
454 Each argument is described in detail in: L<Paws::DataExchange::GetJob>
455  
456 Returns: a L<Paws::DataExchange::GetJobResponse> instance
457  
458 This operation returns information about a job.
459  
460  
461 =head2 GetRevision
462  
463 =over
464  
465 =item DataSetId => Str
466  
467 =item RevisionId => Str
468  
469  
470 =back
471  
472 Each argument is described in detail in: L<Paws::DataExchange::GetRevision>
473  
474 Returns: a L<Paws::DataExchange::GetRevisionResponse> instance
475  
476 This operation returns information about a revision.
477  
478  
479 =head2 ListDataSetRevisions
480  
481 =over
482  
483 =item DataSetId => Str
484  
485 =item [MaxResults => Int]
486  
487 =item [NextToken => Str]
488  
489  
490 =back
491  
492 Each argument is described in detail in: L<Paws::DataExchange::ListDataSetRevisions>
493  
494 Returns: a L<Paws::DataExchange::ListDataSetRevisionsResponse> instance
495  
496 This operation lists a data set's revisions sorted by CreatedAt in
497 descending order.
498  
499  
500 =head2 ListDataSets
501  
502 =over
503  
504 =item [MaxResults => Int]
505  
506 =item [NextToken => Str]
507  
508 =item [Origin => Str]
509  
510  
511 =back
512  
513 Each argument is described in detail in: L<Paws::DataExchange::ListDataSets>
514  
515 Returns: a L<Paws::DataExchange::ListDataSetsResponse> instance
516  
517 This operation lists your data sets. When listing by origin OWNED,
518 results are sorted by CreatedAt in descending order. When listing by
519 origin ENTITLED, there is no order and the maxResults parameter is
520 ignored.
521  
522  
523 =head2 ListJobs
524  
525 =over
526  
527 =item [DataSetId => Str]
528  
529 =item [MaxResults => Int]
530  
531 =item [NextToken => Str]
532  
533 =item [RevisionId => Str]
534  
535  
536 =back
537  
538 Each argument is described in detail in: L<Paws::DataExchange::ListJobs>
539  
540 Returns: a L<Paws::DataExchange::ListJobsResponse> instance
541  
542 This operation lists your jobs sorted by CreatedAt in descending order.
543  
544  
545 =head2 ListRevisionAssets
546  
547 =over
548  
549 =item DataSetId => Str
550  
551 =item RevisionId => Str
552  
553 =item [MaxResults => Int]
554  
555 =item [NextToken => Str]
556  
557  
558 =back
559  
560 Each argument is described in detail in: L<Paws::DataExchange::ListRevisionAssets>
561  
562 Returns: a L<Paws::DataExchange::ListRevisionAssetsResponse> instance
563  
564 This operation lists a revision's assets sorted alphabetically in
565 descending order.
566  
567  
568 =head2 ListTagsForResource
569  
570 =over
571  
572 =item ResourceArn => Str
573  
574  
575 =back
576  
577 Each argument is described in detail in: L<Paws::DataExchange::ListTagsForResource>
578  
579 Returns: a L<Paws::DataExchange::ListTagsForResourceResponse> instance
580  
581 This operation lists the tags on the resource.
582  
583  
584 =head2 StartJob
585  
586 =over
587  
588 =item JobId => Str
589  
590  
591 =back
592  
593 Each argument is described in detail in: L<Paws::DataExchange::StartJob>
594  
595 Returns: a L<Paws::DataExchange::StartJobResponse> instance
596  
597 This operation starts a job.
598  
599  
600 =head2 TagResource
601  
602 =over
603  
604 =item ResourceArn => Str
605  
606 =item Tags => L<Paws::DataExchange::MapOf__string>
607  
608  
609 =back
610  
611 Each argument is described in detail in: L<Paws::DataExchange::TagResource>
612  
613 Returns: nothing
614  
615 This operation tags a resource.
616  
617  
618 =head2 UntagResource
619  
620 =over
621  
622 =item ResourceArn => Str
623  
624 =item TagKeys => ArrayRef[Str|Undef]
625  
626  
627 =back
628  
629 Each argument is described in detail in: L<Paws::DataExchange::UntagResource>
630  
631 Returns: nothing
632  
633 This operation removes one or more tags from a resource.
634  
635  
636 =head2 UpdateAsset
637  
638 =over
639  
640 =item AssetId => Str
641  
642 =item DataSetId => Str
643  
644 =item Name => Str
645  
646 =item RevisionId => Str
647  
648  
649 =back
650  
651 Each argument is described in detail in: L<Paws::DataExchange::UpdateAsset>
652  
653 Returns: a L<Paws::DataExchange::UpdateAssetResponse> instance
654  
655 This operation updates an asset.
656  
657  
658 =head2 UpdateDataSet
659  
660 =over
661  
662 =item DataSetId => Str
663  
664 =item [Description => Str]
665  
666 =item [Name => Str]
667  
668  
669 =back
670  
671 Each argument is described in detail in: L<Paws::DataExchange::UpdateDataSet>
672  
673 Returns: a L<Paws::DataExchange::UpdateDataSetResponse> instance
674  
675 This operation updates a data set.
676  
677  
678 =head2 UpdateRevision
679  
680 =over
681  
682 =item DataSetId => Str
683  
684 =item RevisionId => Str
685  
686 =item [Comment => Str]
687  
688 =item [Finalized => Bool]
689  
690  
691 =back
692  
693 Each argument is described in detail in: L<Paws::DataExchange::UpdateRevision>
694  
695 Returns: a L<Paws::DataExchange::UpdateRevisionResponse> instance
696  
697 This operation updates a revision.
698  
699  
700  
701  
702 =head1 PAGINATORS
703  
704 Paginator methods are helpers that repetively call methods that return partial results
705  
706 =head2 ListAllDataSetRevisions(sub { },DataSetId => Str, [MaxResults => Int, NextToken => Str])
707  
708 =head2 ListAllDataSetRevisions(DataSetId => Str, [MaxResults => Int, NextToken => Str])
709  
710  
711 If passed a sub as first parameter, it will call the sub for each element found in :
712  
713 - Revisions, passing the object as the first parameter, and the string 'Revisions' as the second parameter
714  
715 If not, it will return a a L<Paws::DataExchange::ListDataSetRevisionsResponse> 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.
716  
717  
718 =head2 ListAllDataSets(sub { },[MaxResults => Int, NextToken => Str, Origin => Str])
719  
720 =head2 ListAllDataSets([MaxResults => Int, NextToken => Str, Origin => Str])
721  
722  
723 If passed a sub as first parameter, it will call the sub for each element found in :
724  
725 - DataSets, passing the object as the first parameter, and the string 'DataSets' as the second parameter
726  
727 If not, it will return a a L<Paws::DataExchange::ListDataSetsResponse> 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.
728  
729  
730 =head2 ListAllJobs(sub { },[DataSetId => Str, MaxResults => Int, NextToken => Str, RevisionId => Str])
731  
732 =head2 ListAllJobs([DataSetId => Str, MaxResults => Int, NextToken => Str, RevisionId => Str])
733  
734  
735 If passed a sub as first parameter, it will call the sub for each element found in :
736  
737 - Jobs, passing the object as the first parameter, and the string 'Jobs' as the second parameter
738  
739 If not, it will return a a L<Paws::DataExchange::ListJobsResponse> 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.
740  
741  
742 =head2 ListAllRevisionAssets(sub { },DataSetId => Str, RevisionId => Str, [MaxResults => Int, NextToken => Str])
743  
744 =head2 ListAllRevisionAssets(DataSetId => Str, RevisionId => Str, [MaxResults => Int, NextToken => Str])
745  
746  
747 If passed a sub as first parameter, it will call the sub for each element found in :
748  
749 - Assets, passing the object as the first parameter, and the string 'Assets' as the second parameter
750  
751 If not, it will return a a L<Paws::DataExchange::ListRevisionAssetsResponse> 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.
752  
753  
754  
755  
756  
757 =head1 SEE ALSO
758  
759 This service class forms part of L<Paws>
760  
761 =head1 BUGS and CONTRIBUTIONS
762  
763 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
764  
765 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
766  
767 =cut
768