blib/lib/Paws/ServerlessRepo.pm untested

filter: Statementstmt 0.0% 0 / 115 Branchbran 0.0% 0 / 12 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 23 Podpod 0.0% 0 / 22 totaltotal 0.0% 0 / 172 CC 7 SCAR 16.3
CC
7
Cov
0%
ListAllApplicationDependencies
12.0
ListAllApplications
12.0
ListAllApplicationVersions
12.0
CRAP 5.1
1 package Paws::ServerlessRepo;
2 use Moose;
3 sub service { 'serverlessrepo' }
4 sub signing_name { 'serverlessrepo' }
5 sub version { '2017-09-08' }
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 CreateApplication {
18 my $self = shift;
19 my $call_object = $self->new_with_coercions('Paws::ServerlessRepo::CreateApplication', @_);
20 return $self->caller->do_call($self, $call_object);
21 }
22 sub CreateApplicationVersion {
23 my $self = shift;
24 my $call_object = $self->new_with_coercions('Paws::ServerlessRepo::CreateApplicationVersion', @_);
25 return $self->caller->do_call($self, $call_object);
26 }
27 sub CreateCloudFormationChangeSet {
28 my $self = shift;
29 my $call_object = $self->new_with_coercions('Paws::ServerlessRepo::CreateCloudFormationChangeSet', @_);
30 return $self->caller->do_call($self, $call_object);
31 }
32 sub CreateCloudFormationTemplate {
33 my $self = shift;
34 my $call_object = $self->new_with_coercions('Paws::ServerlessRepo::CreateCloudFormationTemplate', @_);
35 return $self->caller->do_call($self, $call_object);
36 }
37 sub DeleteApplication {
38 my $self = shift;
39 my $call_object = $self->new_with_coercions('Paws::ServerlessRepo::DeleteApplication', @_);
40 return $self->caller->do_call($self, $call_object);
41 }
42 sub GetApplication {
43 my $self = shift;
44 my $call_object = $self->new_with_coercions('Paws::ServerlessRepo::GetApplication', @_);
45 return $self->caller->do_call($self, $call_object);
46 }
47 sub GetApplicationPolicy {
48 my $self = shift;
49 my $call_object = $self->new_with_coercions('Paws::ServerlessRepo::GetApplicationPolicy', @_);
50 return $self->caller->do_call($self, $call_object);
51 }
52 sub GetCloudFormationTemplate {
53 my $self = shift;
54 my $call_object = $self->new_with_coercions('Paws::ServerlessRepo::GetCloudFormationTemplate', @_);
55 return $self->caller->do_call($self, $call_object);
56 }
57 sub ListApplicationDependencies {
58 my $self = shift;
59 my $call_object = $self->new_with_coercions('Paws::ServerlessRepo::ListApplicationDependencies', @_);
60 return $self->caller->do_call($self, $call_object);
61 }
62 sub ListApplications {
63 my $self = shift;
64 my $call_object = $self->new_with_coercions('Paws::ServerlessRepo::ListApplications', @_);
65 return $self->caller->do_call($self, $call_object);
66 }
67 sub ListApplicationVersions {
68 my $self = shift;
69 my $call_object = $self->new_with_coercions('Paws::ServerlessRepo::ListApplicationVersions', @_);
70 return $self->caller->do_call($self, $call_object);
71 }
72 sub PutApplicationPolicy {
73 my $self = shift;
74 my $call_object = $self->new_with_coercions('Paws::ServerlessRepo::PutApplicationPolicy', @_);
75 return $self->caller->do_call($self, $call_object);
76 }
77 sub UnshareApplication {
78 my $self = shift;
79 my $call_object = $self->new_with_coercions('Paws::ServerlessRepo::UnshareApplication', @_);
80 return $self->caller->do_call($self, $call_object);
81 }
82 sub UpdateApplication {
83 my $self = shift;
84 my $call_object = $self->new_with_coercions('Paws::ServerlessRepo::UpdateApplication', @_);
85 return $self->caller->do_call($self, $call_object);
86 }
87
88 sub ListAllApplicationDependencies {
89 my $self = shift;
90  
91 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
92 my $result = $self->ListApplicationDependencies(@_);
93 my $next_result = $result;
94  
95 if (not defined $callback) {
96 while ($next_result->NextToken) {
97 $next_result = $self->ListApplicationDependencies(@_, NextToken => $next_result->NextToken);
98 push @{ $result->Dependencies }, @{ $next_result->Dependencies };
99 }
100 return $result;
101 } else {
102 while ($result->NextToken) {
103 $callback->($_ => 'Dependencies') foreach (@{ $result->Dependencies });
104 $result = $self->ListApplicationDependencies(@_, NextToken => $result->NextToken);
105 }
106 $callback->($_ => 'Dependencies') foreach (@{ $result->Dependencies });
107 }
108  
109 return undef
110 }
111 sub ListAllApplications {
112 my $self = shift;
113  
114 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
115 my $result = $self->ListApplications(@_);
116 my $next_result = $result;
117  
118 if (not defined $callback) {
119 while ($next_result->NextToken) {
120 $next_result = $self->ListApplications(@_, NextToken => $next_result->NextToken);
121 push @{ $result->Applications }, @{ $next_result->Applications };
122 }
123 return $result;
124 } else {
125 while ($result->NextToken) {
126 $callback->($_ => 'Applications') foreach (@{ $result->Applications });
127 $result = $self->ListApplications(@_, NextToken => $result->NextToken);
128 }
129 $callback->($_ => 'Applications') foreach (@{ $result->Applications });
130 }
131  
132 return undef
133 }
134 sub ListAllApplicationVersions {
135 my $self = shift;
136  
137 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
138 my $result = $self->ListApplicationVersions(@_);
139 my $next_result = $result;
140  
141 if (not defined $callback) {
142 while ($next_result->NextToken) {
143 $next_result = $self->ListApplicationVersions(@_, NextToken => $next_result->NextToken);
144 push @{ $result->Versions }, @{ $next_result->Versions };
145 }
146 return $result;
147 } else {
148 while ($result->NextToken) {
149 $callback->($_ => 'Versions') foreach (@{ $result->Versions });
150 $result = $self->ListApplicationVersions(@_, NextToken => $result->NextToken);
151 }
152 $callback->($_ => 'Versions') foreach (@{ $result->Versions });
153 }
154  
155 return undef
156 }
157  
158  
159 sub operations { qw/CreateApplication CreateApplicationVersion CreateCloudFormationChangeSet CreateCloudFormationTemplate DeleteApplication GetApplication GetApplicationPolicy GetCloudFormationTemplate ListApplicationDependencies ListApplications ListApplicationVersions PutApplicationPolicy UnshareApplication UpdateApplication / }
160  
161 1;
162  
163 ### main pod documentation begin ###
164  
165 =head1 NAME
166  
167 Paws::ServerlessRepo - Perl Interface to AWS AWSServerlessApplicationRepository
168  
169 =head1 SYNOPSIS
170  
171 use Paws;
172  
173 my $obj = Paws->service('ServerlessRepo');
174 my $res = $obj->Method(
175 Arg1 => $val1,
176 Arg2 => [ 'V1', 'V2' ],
177 # if Arg3 is an object, the HashRef will be used as arguments to the constructor
178 # of the arguments type
179 Arg3 => { Att1 => 'Val1' },
180 # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
181 # the constructor of the arguments type
182 Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
183 );
184  
185 =head1 DESCRIPTION
186  
187 The AWS Serverless Application Repository makes it easy for developers
188 and enterprises to quickly find and deploy serverless applications in
189 the AWS Cloud. For more information about serverless applications, see
190 Serverless Computing and Applications on the AWS website.
191  
192 The AWS Serverless Application Repository is deeply integrated with the
193 AWS Lambda console, so that developers of all levels can get started
194 with serverless computing without needing to learn anything new. You
195 can use category keywords to browse for applications such as web and
196 mobile backends, data processing applications, or chatbots. You can
197 also search for applications by name, publisher, or event source. To
198 use an application, you simply choose it, configure any required
199 fields, and deploy it with a few clicks.
200  
201 You can also easily publish applications, sharing them publicly with
202 the community at large, or privately within your team or across your
203 organization. To publish a serverless application (or app), you can use
204 the AWS Management Console, AWS Command Line Interface (AWS CLI), or
205 AWS SDKs to upload the code. Along with the code, you upload a simple
206 manifest file, also known as the AWS Serverless Application Model (AWS
207 SAM) template. For more information about AWS SAM, see AWS Serverless
208 Application Model (AWS SAM) on the AWS Labs GitHub repository.
209  
210 The AWS Serverless Application Repository Developer Guide contains more
211 information about the two developer experiences available:
212  
213 =over
214  
215 =item *
216  
217 Consuming Applications E<ndash> Browse for applications and view
218 information about them, including source code and readme files. Also
219 install, configure, and deploy applications of your choosing.
220  
221 Publishing Applications E<ndash> Configure and upload applications to
222 make them available to other developers, and publish new versions of
223 applications.
224  
225 =back
226  
227  
228 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08>
229  
230  
231 =head1 METHODS
232  
233 =head2 CreateApplication
234  
235 =over
236  
237 =item Author => Str
238  
239 =item Description => Str
240  
241 =item Name => Str
242  
243 =item [HomePageUrl => Str]
244  
245 =item [Labels => ArrayRef[Str|Undef]]
246  
247 =item [LicenseBody => Str]
248  
249 =item [LicenseUrl => Str]
250  
251 =item [ReadmeBody => Str]
252  
253 =item [ReadmeUrl => Str]
254  
255 =item [SemanticVersion => Str]
256  
257 =item [SourceCodeArchiveUrl => Str]
258  
259 =item [SourceCodeUrl => Str]
260  
261 =item [SpdxLicenseId => Str]
262  
263 =item [TemplateBody => Str]
264  
265 =item [TemplateUrl => Str]
266  
267  
268 =back
269  
270 Each argument is described in detail in: L<Paws::ServerlessRepo::CreateApplication>
271  
272 Returns: a L<Paws::ServerlessRepo::CreateApplicationResponse> instance
273  
274 Creates an application, optionally including an AWS SAM file to create
275 the first application version in the same call.
276  
277  
278 =head2 CreateApplicationVersion
279  
280 =over
281  
282 =item ApplicationId => Str
283  
284 =item SemanticVersion => Str
285  
286 =item [SourceCodeArchiveUrl => Str]
287  
288 =item [SourceCodeUrl => Str]
289  
290 =item [TemplateBody => Str]
291  
292 =item [TemplateUrl => Str]
293  
294  
295 =back
296  
297 Each argument is described in detail in: L<Paws::ServerlessRepo::CreateApplicationVersion>
298  
299 Returns: a L<Paws::ServerlessRepo::CreateApplicationVersionResponse> instance
300  
301 Creates an application version.
302  
303  
304 =head2 CreateCloudFormationChangeSet
305  
306 =over
307  
308 =item ApplicationId => Str
309  
310 =item StackName => Str
311  
312 =item [Capabilities => ArrayRef[Str|Undef]]
313  
314 =item [ChangeSetName => Str]
315  
316 =item [ClientToken => Str]
317  
318 =item [Description => Str]
319  
320 =item [NotificationArns => ArrayRef[Str|Undef]]
321  
322 =item [ParameterOverrides => ArrayRef[L<Paws::ServerlessRepo::ParameterValue>]]
323  
324 =item [ResourceTypes => ArrayRef[Str|Undef]]
325  
326 =item [RollbackConfiguration => L<Paws::ServerlessRepo::RollbackConfiguration>]
327  
328 =item [SemanticVersion => Str]
329  
330 =item [Tags => ArrayRef[L<Paws::ServerlessRepo::Tag>]]
331  
332 =item [TemplateId => Str]
333  
334  
335 =back
336  
337 Each argument is described in detail in: L<Paws::ServerlessRepo::CreateCloudFormationChangeSet>
338  
339 Returns: a L<Paws::ServerlessRepo::CreateCloudFormationChangeSetResponse> instance
340  
341 Creates an AWS CloudFormation change set for the given application.
342  
343  
344 =head2 CreateCloudFormationTemplate
345  
346 =over
347  
348 =item ApplicationId => Str
349  
350 =item [SemanticVersion => Str]
351  
352  
353 =back
354  
355 Each argument is described in detail in: L<Paws::ServerlessRepo::CreateCloudFormationTemplate>
356  
357 Returns: a L<Paws::ServerlessRepo::CreateCloudFormationTemplateResponse> instance
358  
359 Creates an AWS CloudFormation template.
360  
361  
362 =head2 DeleteApplication
363  
364 =over
365  
366 =item ApplicationId => Str
367  
368  
369 =back
370  
371 Each argument is described in detail in: L<Paws::ServerlessRepo::DeleteApplication>
372  
373 Returns: nothing
374  
375 Deletes the specified application.
376  
377  
378 =head2 GetApplication
379  
380 =over
381  
382 =item ApplicationId => Str
383  
384 =item [SemanticVersion => Str]
385  
386  
387 =back
388  
389 Each argument is described in detail in: L<Paws::ServerlessRepo::GetApplication>
390  
391 Returns: a L<Paws::ServerlessRepo::GetApplicationResponse> instance
392  
393 Gets the specified application.
394  
395  
396 =head2 GetApplicationPolicy
397  
398 =over
399  
400 =item ApplicationId => Str
401  
402  
403 =back
404  
405 Each argument is described in detail in: L<Paws::ServerlessRepo::GetApplicationPolicy>
406  
407 Returns: a L<Paws::ServerlessRepo::GetApplicationPolicyResponse> instance
408  
409 Retrieves the policy for the application.
410  
411  
412 =head2 GetCloudFormationTemplate
413  
414 =over
415  
416 =item ApplicationId => Str
417  
418 =item TemplateId => Str
419  
420  
421 =back
422  
423 Each argument is described in detail in: L<Paws::ServerlessRepo::GetCloudFormationTemplate>
424  
425 Returns: a L<Paws::ServerlessRepo::GetCloudFormationTemplateResponse> instance
426  
427 Gets the specified AWS CloudFormation template.
428  
429  
430 =head2 ListApplicationDependencies
431  
432 =over
433  
434 =item ApplicationId => Str
435  
436 =item [MaxItems => Int]
437  
438 =item [NextToken => Str]
439  
440 =item [SemanticVersion => Str]
441  
442  
443 =back
444  
445 Each argument is described in detail in: L<Paws::ServerlessRepo::ListApplicationDependencies>
446  
447 Returns: a L<Paws::ServerlessRepo::ListApplicationDependenciesResponse> instance
448  
449 Retrieves the list of applications nested in the containing
450 application.
451  
452  
453 =head2 ListApplications
454  
455 =over
456  
457 =item [MaxItems => Int]
458  
459 =item [NextToken => Str]
460  
461  
462 =back
463  
464 Each argument is described in detail in: L<Paws::ServerlessRepo::ListApplications>
465  
466 Returns: a L<Paws::ServerlessRepo::ListApplicationsResponse> instance
467  
468 Lists applications owned by the requester.
469  
470  
471 =head2 ListApplicationVersions
472  
473 =over
474  
475 =item ApplicationId => Str
476  
477 =item [MaxItems => Int]
478  
479 =item [NextToken => Str]
480  
481  
482 =back
483  
484 Each argument is described in detail in: L<Paws::ServerlessRepo::ListApplicationVersions>
485  
486 Returns: a L<Paws::ServerlessRepo::ListApplicationVersionsResponse> instance
487  
488 Lists versions for the specified application.
489  
490  
491 =head2 PutApplicationPolicy
492  
493 =over
494  
495 =item ApplicationId => Str
496  
497 =item Statements => ArrayRef[L<Paws::ServerlessRepo::ApplicationPolicyStatement>]
498  
499  
500 =back
501  
502 Each argument is described in detail in: L<Paws::ServerlessRepo::PutApplicationPolicy>
503  
504 Returns: a L<Paws::ServerlessRepo::PutApplicationPolicyResponse> instance
505  
506 Sets the permission policy for an application. For the list of actions
507 supported for this operation, see Application Permissions
508 (https://docs.aws.amazon.com/serverlessrepo/latest/devguide/access-control-resource-based.html#application-permissions)
509 .
510  
511  
512 =head2 UnshareApplication
513  
514 =over
515  
516 =item ApplicationId => Str
517  
518 =item OrganizationId => Str
519  
520  
521 =back
522  
523 Each argument is described in detail in: L<Paws::ServerlessRepo::UnshareApplication>
524  
525 Returns: nothing
526  
527 Unshares an application from an AWS Organization.
528  
529 This operation can be called only from the organization's master
530 account.
531  
532  
533 =head2 UpdateApplication
534  
535 =over
536  
537 =item ApplicationId => Str
538  
539 =item [Author => Str]
540  
541 =item [Description => Str]
542  
543 =item [HomePageUrl => Str]
544  
545 =item [Labels => ArrayRef[Str|Undef]]
546  
547 =item [ReadmeBody => Str]
548  
549 =item [ReadmeUrl => Str]
550  
551  
552 =back
553  
554 Each argument is described in detail in: L<Paws::ServerlessRepo::UpdateApplication>
555  
556 Returns: a L<Paws::ServerlessRepo::UpdateApplicationResponse> instance
557  
558 Updates the specified application.
559  
560  
561  
562  
563 =head1 PAGINATORS
564  
565 Paginator methods are helpers that repetively call methods that return partial results
566  
567 =head2 ListAllApplicationDependencies(sub { },ApplicationId => Str, [MaxItems => Int, NextToken => Str, SemanticVersion => Str])
568  
569 =head2 ListAllApplicationDependencies(ApplicationId => Str, [MaxItems => Int, NextToken => Str, SemanticVersion => Str])
570  
571  
572 If passed a sub as first parameter, it will call the sub for each element found in :
573  
574 - Dependencies, passing the object as the first parameter, and the string 'Dependencies' as the second parameter
575  
576 If not, it will return a a L<Paws::ServerlessRepo::ListApplicationDependenciesResponse> 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.
577  
578  
579 =head2 ListAllApplications(sub { },[MaxItems => Int, NextToken => Str])
580  
581 =head2 ListAllApplications([MaxItems => Int, NextToken => Str])
582  
583  
584 If passed a sub as first parameter, it will call the sub for each element found in :
585  
586 - Applications, passing the object as the first parameter, and the string 'Applications' as the second parameter
587  
588 If not, it will return a a L<Paws::ServerlessRepo::ListApplicationsResponse> 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.
589  
590  
591 =head2 ListAllApplicationVersions(sub { },ApplicationId => Str, [MaxItems => Int, NextToken => Str])
592  
593 =head2 ListAllApplicationVersions(ApplicationId => Str, [MaxItems => Int, NextToken => Str])
594  
595  
596 If passed a sub as first parameter, it will call the sub for each element found in :
597  
598 - Versions, passing the object as the first parameter, and the string 'Versions' as the second parameter
599  
600 If not, it will return a a L<Paws::ServerlessRepo::ListApplicationVersionsResponse> 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.
601  
602  
603  
604  
605  
606 =head1 SEE ALSO
607  
608 This service class forms part of L<Paws>
609  
610 =head1 BUGS and CONTRIBUTIONS
611  
612 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
613  
614 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
615  
616 =cut
617