blib/lib/Paws/CodeStar.pm untested

filter: Statementstmt 0.0% 0 / 149 Branchbran 0.0% 0 / 16 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 29 Podpod 0.0% 0 / 28 totaltotal 0.0% 0 / 222 CC 9 SCAR 16.6
CC
9
Cov
0%
ListAllProjects
12.0
ListAllResources
12.0
ListAllTeamMembers
12.0
CRAP 5.2
1 package Paws::CodeStar;
2 use Moose;
3 sub service { 'codestar' }
4 sub signing_name { 'codestar' }
5 sub version { '2017-04-19' }
6 sub target_prefix { 'CodeStar_20170419' }
7 sub json_version { "1.1" }
8 has max_attempts => (is => 'ro', isa => 'Int', default => 5);
9 has retry => (is => 'ro', isa => 'HashRef', default => sub {
10 { base => 'rand', type => 'exponential', growth_factor => 2 }
11 });
12 has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [
13 ] });
14  
15 with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::JsonCaller';
16  
17
18 sub AssociateTeamMember {
19 my $self = shift;
20 my $call_object = $self->new_with_coercions('Paws::CodeStar::AssociateTeamMember', @_);
21 return $self->caller->do_call($self, $call_object);
22 }
23 sub CreateProject {
24 my $self = shift;
25 my $call_object = $self->new_with_coercions('Paws::CodeStar::CreateProject', @_);
26 return $self->caller->do_call($self, $call_object);
27 }
28 sub CreateUserProfile {
29 my $self = shift;
30 my $call_object = $self->new_with_coercions('Paws::CodeStar::CreateUserProfile', @_);
31 return $self->caller->do_call($self, $call_object);
32 }
33 sub DeleteProject {
34 my $self = shift;
35 my $call_object = $self->new_with_coercions('Paws::CodeStar::DeleteProject', @_);
36 return $self->caller->do_call($self, $call_object);
37 }
38 sub DeleteUserProfile {
39 my $self = shift;
40 my $call_object = $self->new_with_coercions('Paws::CodeStar::DeleteUserProfile', @_);
41 return $self->caller->do_call($self, $call_object);
42 }
43 sub DescribeProject {
44 my $self = shift;
45 my $call_object = $self->new_with_coercions('Paws::CodeStar::DescribeProject', @_);
46 return $self->caller->do_call($self, $call_object);
47 }
48 sub DescribeUserProfile {
49 my $self = shift;
50 my $call_object = $self->new_with_coercions('Paws::CodeStar::DescribeUserProfile', @_);
51 return $self->caller->do_call($self, $call_object);
52 }
53 sub DisassociateTeamMember {
54 my $self = shift;
55 my $call_object = $self->new_with_coercions('Paws::CodeStar::DisassociateTeamMember', @_);
56 return $self->caller->do_call($self, $call_object);
57 }
58 sub ListProjects {
59 my $self = shift;
60 my $call_object = $self->new_with_coercions('Paws::CodeStar::ListProjects', @_);
61 return $self->caller->do_call($self, $call_object);
62 }
63 sub ListResources {
64 my $self = shift;
65 my $call_object = $self->new_with_coercions('Paws::CodeStar::ListResources', @_);
66 return $self->caller->do_call($self, $call_object);
67 }
68 sub ListTagsForProject {
69 my $self = shift;
70 my $call_object = $self->new_with_coercions('Paws::CodeStar::ListTagsForProject', @_);
71 return $self->caller->do_call($self, $call_object);
72 }
73 sub ListTeamMembers {
74 my $self = shift;
75 my $call_object = $self->new_with_coercions('Paws::CodeStar::ListTeamMembers', @_);
76 return $self->caller->do_call($self, $call_object);
77 }
78 sub ListUserProfiles {
79 my $self = shift;
80 my $call_object = $self->new_with_coercions('Paws::CodeStar::ListUserProfiles', @_);
81 return $self->caller->do_call($self, $call_object);
82 }
83 sub TagProject {
84 my $self = shift;
85 my $call_object = $self->new_with_coercions('Paws::CodeStar::TagProject', @_);
86 return $self->caller->do_call($self, $call_object);
87 }
88 sub UntagProject {
89 my $self = shift;
90 my $call_object = $self->new_with_coercions('Paws::CodeStar::UntagProject', @_);
91 return $self->caller->do_call($self, $call_object);
92 }
93 sub UpdateProject {
94 my $self = shift;
95 my $call_object = $self->new_with_coercions('Paws::CodeStar::UpdateProject', @_);
96 return $self->caller->do_call($self, $call_object);
97 }
98 sub UpdateTeamMember {
99 my $self = shift;
100 my $call_object = $self->new_with_coercions('Paws::CodeStar::UpdateTeamMember', @_);
101 return $self->caller->do_call($self, $call_object);
102 }
103 sub UpdateUserProfile {
104 my $self = shift;
105 my $call_object = $self->new_with_coercions('Paws::CodeStar::UpdateUserProfile', @_);
106 return $self->caller->do_call($self, $call_object);
107 }
108
109 sub ListAllProjects {
110 my $self = shift;
111  
112 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
113 my $result = $self->ListProjects(@_);
114 my $next_result = $result;
115  
116 if (not defined $callback) {
117 while ($next_result->nextToken) {
118 $next_result = $self->ListProjects(@_, nextToken => $next_result->nextToken);
119 push @{ $result->projects }, @{ $next_result->projects };
120 }
121 return $result;
122 } else {
123 while ($result->nextToken) {
124 $callback->($_ => 'projects') foreach (@{ $result->projects });
125 $result = $self->ListProjects(@_, nextToken => $result->nextToken);
126 }
127 $callback->($_ => 'projects') foreach (@{ $result->projects });
128 }
129  
130 return undef
131 }
132 sub ListAllResources {
133 my $self = shift;
134  
135 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
136 my $result = $self->ListResources(@_);
137 my $next_result = $result;
138  
139 if (not defined $callback) {
140 while ($next_result->nextToken) {
141 $next_result = $self->ListResources(@_, nextToken => $next_result->nextToken);
142 push @{ $result->resources }, @{ $next_result->resources };
143 }
144 return $result;
145 } else {
146 while ($result->nextToken) {
147 $callback->($_ => 'resources') foreach (@{ $result->resources });
148 $result = $self->ListResources(@_, nextToken => $result->nextToken);
149 }
150 $callback->($_ => 'resources') foreach (@{ $result->resources });
151 }
152  
153 return undef
154 }
155 sub ListAllTeamMembers {
156 my $self = shift;
157  
158 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
159 my $result = $self->ListTeamMembers(@_);
160 my $next_result = $result;
161  
162 if (not defined $callback) {
163 while ($next_result->nextToken) {
164 $next_result = $self->ListTeamMembers(@_, nextToken => $next_result->nextToken);
165 push @{ $result->teamMembers }, @{ $next_result->teamMembers };
166 }
167 return $result;
168 } else {
169 while ($result->nextToken) {
170 $callback->($_ => 'teamMembers') foreach (@{ $result->teamMembers });
171 $result = $self->ListTeamMembers(@_, nextToken => $result->nextToken);
172 }
173 $callback->($_ => 'teamMembers') foreach (@{ $result->teamMembers });
174 }
175  
176 return undef
177 }
178 sub ListAllUserProfiles {
179 my $self = shift;
180  
181 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
182 my $result = $self->ListUserProfiles(@_);
183 my $next_result = $result;
184  
185 if (not defined $callback) {
186 while ($next_result->nextToken) {
187 $next_result = $self->ListUserProfiles(@_, nextToken => $next_result->nextToken);
188 push @{ $result->userProfiles }, @{ $next_result->userProfiles };
189 }
190 return $result;
191 } else {
192 while ($result->nextToken) {
193 $callback->($_ => 'userProfiles') foreach (@{ $result->userProfiles });
194 $result = $self->ListUserProfiles(@_, nextToken => $result->nextToken);
195 }
196 $callback->($_ => 'userProfiles') foreach (@{ $result->userProfiles });
197 }
198  
199 return undef
200 }
201  
202  
203 sub operations { qw/AssociateTeamMember CreateProject CreateUserProfile DeleteProject DeleteUserProfile DescribeProject DescribeUserProfile DisassociateTeamMember ListProjects ListResources ListTagsForProject ListTeamMembers ListUserProfiles TagProject UntagProject UpdateProject UpdateTeamMember UpdateUserProfile / }
204  
205 1;
206  
207 ### main pod documentation begin ###
208  
209 =head1 NAME
210  
211 Paws::CodeStar - Perl Interface to AWS AWS CodeStar
212  
213 =head1 SYNOPSIS
214  
215 use Paws;
216  
217 my $obj = Paws->service('CodeStar');
218 my $res = $obj->Method(
219 Arg1 => $val1,
220 Arg2 => [ 'V1', 'V2' ],
221 # if Arg3 is an object, the HashRef will be used as arguments to the constructor
222 # of the arguments type
223 Arg3 => { Att1 => 'Val1' },
224 # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
225 # the constructor of the arguments type
226 Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
227 );
228  
229 =head1 DESCRIPTION
230  
231 AWS CodeStar
232  
233 This is the API reference for AWS CodeStar. This reference provides
234 descriptions of the operations and data types for the AWS CodeStar API
235 along with usage examples.
236  
237 You can use the AWS CodeStar API to work with:
238  
239 Projects and their resources, by calling the following:
240  
241 =over
242  
243 =item *
244  
245 C<DeleteProject>, which deletes a project.
246  
247 =item *
248  
249 C<DescribeProject>, which lists the attributes of a project.
250  
251 =item *
252  
253 C<ListProjects>, which lists all projects associated with your AWS
254 account.
255  
256 =item *
257  
258 C<ListResources>, which lists the resources associated with a project.
259  
260 =item *
261  
262 C<ListTagsForProject>, which lists the tags associated with a project.
263  
264 =item *
265  
266 C<TagProject>, which adds tags to a project.
267  
268 =item *
269  
270 C<UntagProject>, which removes tags from a project.
271  
272 =item *
273  
274 C<UpdateProject>, which updates the attributes of a project.
275  
276 =back
277  
278 Teams and team members, by calling the following:
279  
280 =over
281  
282 =item *
283  
284 C<AssociateTeamMember>, which adds an IAM user to the team for a
285 project.
286  
287 =item *
288  
289 C<DisassociateTeamMember>, which removes an IAM user from the team for
290 a project.
291  
292 =item *
293  
294 C<ListTeamMembers>, which lists all the IAM users in the team for a
295 project, including their roles and attributes.
296  
297 =item *
298  
299 C<UpdateTeamMember>, which updates a team member's attributes in a
300 project.
301  
302 =back
303  
304 Users, by calling the following:
305  
306 =over
307  
308 =item *
309  
310 C<CreateUserProfile>, which creates a user profile that contains data
311 associated with the user across all projects.
312  
313 =item *
314  
315 C<DeleteUserProfile>, which deletes all user profile information across
316 all projects.
317  
318 =item *
319  
320 C<DescribeUserProfile>, which describes the profile of a user.
321  
322 =item *
323  
324 C<ListUserProfiles>, which lists all user profiles.
325  
326 =item *
327  
328 C<UpdateUserProfile>, which updates the profile for a user.
329  
330 =back
331  
332  
333 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19>
334  
335  
336 =head1 METHODS
337  
338 =head2 AssociateTeamMember
339  
340 =over
341  
342 =item ProjectId => Str
343  
344 =item ProjectRole => Str
345  
346 =item UserArn => Str
347  
348 =item [ClientRequestToken => Str]
349  
350 =item [RemoteAccessAllowed => Bool]
351  
352  
353 =back
354  
355 Each argument is described in detail in: L<Paws::CodeStar::AssociateTeamMember>
356  
357 Returns: a L<Paws::CodeStar::AssociateTeamMemberResult> instance
358  
359 Adds an IAM user to the team for an AWS CodeStar project.
360  
361  
362 =head2 CreateProject
363  
364 =over
365  
366 =item Id => Str
367  
368 =item Name => Str
369  
370 =item [ClientRequestToken => Str]
371  
372 =item [Description => Str]
373  
374 =item [SourceCode => ArrayRef[L<Paws::CodeStar::Code>]]
375  
376 =item [Tags => L<Paws::CodeStar::Tags>]
377  
378 =item [Toolchain => L<Paws::CodeStar::Toolchain>]
379  
380  
381 =back
382  
383 Each argument is described in detail in: L<Paws::CodeStar::CreateProject>
384  
385 Returns: a L<Paws::CodeStar::CreateProjectResult> instance
386  
387 Creates a project, including project resources. This action creates a
388 project based on a submitted project request. A set of source code
389 files and a toolchain template file can be included with the project
390 request. If these are not provided, an empty project is created.
391  
392  
393 =head2 CreateUserProfile
394  
395 =over
396  
397 =item DisplayName => Str
398  
399 =item EmailAddress => Str
400  
401 =item UserArn => Str
402  
403 =item [SshPublicKey => Str]
404  
405  
406 =back
407  
408 Each argument is described in detail in: L<Paws::CodeStar::CreateUserProfile>
409  
410 Returns: a L<Paws::CodeStar::CreateUserProfileResult> instance
411  
412 Creates a profile for a user that includes user preferences, such as
413 the display name and email address assocciated with the user, in AWS
414 CodeStar. The user profile is not project-specific. Information in the
415 user profile is displayed wherever the user's information appears to
416 other users in AWS CodeStar.
417  
418  
419 =head2 DeleteProject
420  
421 =over
422  
423 =item Id => Str
424  
425 =item [ClientRequestToken => Str]
426  
427 =item [DeleteStack => Bool]
428  
429  
430 =back
431  
432 Each argument is described in detail in: L<Paws::CodeStar::DeleteProject>
433  
434 Returns: a L<Paws::CodeStar::DeleteProjectResult> instance
435  
436 Deletes a project, including project resources. Does not delete users
437 associated with the project, but does delete the IAM roles that allowed
438 access to the project.
439  
440  
441 =head2 DeleteUserProfile
442  
443 =over
444  
445 =item UserArn => Str
446  
447  
448 =back
449  
450 Each argument is described in detail in: L<Paws::CodeStar::DeleteUserProfile>
451  
452 Returns: a L<Paws::CodeStar::DeleteUserProfileResult> instance
453  
454 Deletes a user profile in AWS CodeStar, including all personal
455 preference data associated with that profile, such as display name and
456 email address. It does not delete the history of that user, for example
457 the history of commits made by that user.
458  
459  
460 =head2 DescribeProject
461  
462 =over
463  
464 =item Id => Str
465  
466  
467 =back
468  
469 Each argument is described in detail in: L<Paws::CodeStar::DescribeProject>
470  
471 Returns: a L<Paws::CodeStar::DescribeProjectResult> instance
472  
473 Describes a project and its resources.
474  
475  
476 =head2 DescribeUserProfile
477  
478 =over
479  
480 =item UserArn => Str
481  
482  
483 =back
484  
485 Each argument is described in detail in: L<Paws::CodeStar::DescribeUserProfile>
486  
487 Returns: a L<Paws::CodeStar::DescribeUserProfileResult> instance
488  
489 Describes a user in AWS CodeStar and the user attributes across all
490 projects.
491  
492  
493 =head2 DisassociateTeamMember
494  
495 =over
496  
497 =item ProjectId => Str
498  
499 =item UserArn => Str
500  
501  
502 =back
503  
504 Each argument is described in detail in: L<Paws::CodeStar::DisassociateTeamMember>
505  
506 Returns: a L<Paws::CodeStar::DisassociateTeamMemberResult> instance
507  
508 Removes a user from a project. Removing a user from a project also
509 removes the IAM policies from that user that allowed access to the
510 project and its resources. Disassociating a team member does not remove
511 that user's profile from AWS CodeStar. It does not remove the user from
512 IAM.
513  
514  
515 =head2 ListProjects
516  
517 =over
518  
519 =item [MaxResults => Int]
520  
521 =item [NextToken => Str]
522  
523  
524 =back
525  
526 Each argument is described in detail in: L<Paws::CodeStar::ListProjects>
527  
528 Returns: a L<Paws::CodeStar::ListProjectsResult> instance
529  
530 Lists all projects in AWS CodeStar associated with your AWS account.
531  
532  
533 =head2 ListResources
534  
535 =over
536  
537 =item ProjectId => Str
538  
539 =item [MaxResults => Int]
540  
541 =item [NextToken => Str]
542  
543  
544 =back
545  
546 Each argument is described in detail in: L<Paws::CodeStar::ListResources>
547  
548 Returns: a L<Paws::CodeStar::ListResourcesResult> instance
549  
550 Lists resources associated with a project in AWS CodeStar.
551  
552  
553 =head2 ListTagsForProject
554  
555 =over
556  
557 =item Id => Str
558  
559 =item [MaxResults => Int]
560  
561 =item [NextToken => Str]
562  
563  
564 =back
565  
566 Each argument is described in detail in: L<Paws::CodeStar::ListTagsForProject>
567  
568 Returns: a L<Paws::CodeStar::ListTagsForProjectResult> instance
569  
570 Gets the tags for a project.
571  
572  
573 =head2 ListTeamMembers
574  
575 =over
576  
577 =item ProjectId => Str
578  
579 =item [MaxResults => Int]
580  
581 =item [NextToken => Str]
582  
583  
584 =back
585  
586 Each argument is described in detail in: L<Paws::CodeStar::ListTeamMembers>
587  
588 Returns: a L<Paws::CodeStar::ListTeamMembersResult> instance
589  
590 Lists all team members associated with a project.
591  
592  
593 =head2 ListUserProfiles
594  
595 =over
596  
597 =item [MaxResults => Int]
598  
599 =item [NextToken => Str]
600  
601  
602 =back
603  
604 Each argument is described in detail in: L<Paws::CodeStar::ListUserProfiles>
605  
606 Returns: a L<Paws::CodeStar::ListUserProfilesResult> instance
607  
608 Lists all the user profiles configured for your AWS account in AWS
609 CodeStar.
610  
611  
612 =head2 TagProject
613  
614 =over
615  
616 =item Id => Str
617  
618 =item Tags => L<Paws::CodeStar::Tags>
619  
620  
621 =back
622  
623 Each argument is described in detail in: L<Paws::CodeStar::TagProject>
624  
625 Returns: a L<Paws::CodeStar::TagProjectResult> instance
626  
627 Adds tags to a project.
628  
629  
630 =head2 UntagProject
631  
632 =over
633  
634 =item Id => Str
635  
636 =item Tags => ArrayRef[Str|Undef]
637  
638  
639 =back
640  
641 Each argument is described in detail in: L<Paws::CodeStar::UntagProject>
642  
643 Returns: a L<Paws::CodeStar::UntagProjectResult> instance
644  
645 Removes tags from a project.
646  
647  
648 =head2 UpdateProject
649  
650 =over
651  
652 =item Id => Str
653  
654 =item [Description => Str]
655  
656 =item [Name => Str]
657  
658  
659 =back
660  
661 Each argument is described in detail in: L<Paws::CodeStar::UpdateProject>
662  
663 Returns: a L<Paws::CodeStar::UpdateProjectResult> instance
664  
665 Updates a project in AWS CodeStar.
666  
667  
668 =head2 UpdateTeamMember
669  
670 =over
671  
672 =item ProjectId => Str
673  
674 =item UserArn => Str
675  
676 =item [ProjectRole => Str]
677  
678 =item [RemoteAccessAllowed => Bool]
679  
680  
681 =back
682  
683 Each argument is described in detail in: L<Paws::CodeStar::UpdateTeamMember>
684  
685 Returns: a L<Paws::CodeStar::UpdateTeamMemberResult> instance
686  
687 Updates a team member's attributes in an AWS CodeStar project. For
688 example, you can change a team member's role in the project, or change
689 whether they have remote access to project resources.
690  
691  
692 =head2 UpdateUserProfile
693  
694 =over
695  
696 =item UserArn => Str
697  
698 =item [DisplayName => Str]
699  
700 =item [EmailAddress => Str]
701  
702 =item [SshPublicKey => Str]
703  
704  
705 =back
706  
707 Each argument is described in detail in: L<Paws::CodeStar::UpdateUserProfile>
708  
709 Returns: a L<Paws::CodeStar::UpdateUserProfileResult> instance
710  
711 Updates a user's profile in AWS CodeStar. The user profile is not
712 project-specific. Information in the user profile is displayed wherever
713 the user's information appears to other users in AWS CodeStar.
714  
715  
716  
717  
718 =head1 PAGINATORS
719  
720 Paginator methods are helpers that repetively call methods that return partial results
721  
722 =head2 ListAllProjects(sub { },[MaxResults => Int, NextToken => Str])
723  
724 =head2 ListAllProjects([MaxResults => Int, NextToken => Str])
725  
726  
727 If passed a sub as first parameter, it will call the sub for each element found in :
728  
729 - projects, passing the object as the first parameter, and the string 'projects' as the second parameter
730  
731 If not, it will return a a L<Paws::CodeStar::ListProjectsResult> 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.
732  
733  
734 =head2 ListAllResources(sub { },ProjectId => Str, [MaxResults => Int, NextToken => Str])
735  
736 =head2 ListAllResources(ProjectId => Str, [MaxResults => Int, NextToken => Str])
737  
738  
739 If passed a sub as first parameter, it will call the sub for each element found in :
740  
741 - resources, passing the object as the first parameter, and the string 'resources' as the second parameter
742  
743 If not, it will return a a L<Paws::CodeStar::ListResourcesResult> 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.
744  
745  
746 =head2 ListAllTeamMembers(sub { },ProjectId => Str, [MaxResults => Int, NextToken => Str])
747  
748 =head2 ListAllTeamMembers(ProjectId => Str, [MaxResults => Int, NextToken => Str])
749  
750  
751 If passed a sub as first parameter, it will call the sub for each element found in :
752  
753 - teamMembers, passing the object as the first parameter, and the string 'teamMembers' as the second parameter
754  
755 If not, it will return a a L<Paws::CodeStar::ListTeamMembersResult> 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.
756  
757  
758 =head2 ListAllUserProfiles(sub { },[MaxResults => Int, NextToken => Str])
759  
760 =head2 ListAllUserProfiles([MaxResults => Int, NextToken => Str])
761  
762  
763 If passed a sub as first parameter, it will call the sub for each element found in :
764  
765 - userProfiles, passing the object as the first parameter, and the string 'userProfiles' as the second parameter
766  
767 If not, it will return a a L<Paws::CodeStar::ListUserProfilesResult> 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.
768  
769  
770  
771  
772  
773 =head1 SEE ALSO
774  
775 This service class forms part of L<Paws>
776  
777 =head1 BUGS and CONTRIBUTIONS
778  
779 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
780  
781 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
782  
783 =cut
784