blib/lib/Paws/Cloud9.pm untested

filter: Statementstmt 0.0% 0 / 94 Branchbran 0.0% 0 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 22 Podpod 0.0% 0 / 21 totaltotal 0.0% 0 / 145 CC 5 SCAR 14.6
CC
5
Cov
0%
DescribeAllEnvironmentMemberships
12.0
ListAllEnvironments
12.0
service
2.0
CRAP 4.3
1 package Paws::Cloud9;
2 use Moose;
3 sub service { 'cloud9' }
4 sub signing_name { 'cloud9' }
5 sub version { '2017-09-23' }
6 sub target_prefix { 'AWSCloud9WorkspaceManagementService' }
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 CreateEnvironmentEC2 {
19 my $self = shift;
20 my $call_object = $self->new_with_coercions('Paws::Cloud9::CreateEnvironmentEC2', @_);
21 return $self->caller->do_call($self, $call_object);
22 }
23 sub CreateEnvironmentMembership {
24 my $self = shift;
25 my $call_object = $self->new_with_coercions('Paws::Cloud9::CreateEnvironmentMembership', @_);
26 return $self->caller->do_call($self, $call_object);
27 }
28 sub DeleteEnvironment {
29 my $self = shift;
30 my $call_object = $self->new_with_coercions('Paws::Cloud9::DeleteEnvironment', @_);
31 return $self->caller->do_call($self, $call_object);
32 }
33 sub DeleteEnvironmentMembership {
34 my $self = shift;
35 my $call_object = $self->new_with_coercions('Paws::Cloud9::DeleteEnvironmentMembership', @_);
36 return $self->caller->do_call($self, $call_object);
37 }
38 sub DescribeEnvironmentMemberships {
39 my $self = shift;
40 my $call_object = $self->new_with_coercions('Paws::Cloud9::DescribeEnvironmentMemberships', @_);
41 return $self->caller->do_call($self, $call_object);
42 }
43 sub DescribeEnvironments {
44 my $self = shift;
45 my $call_object = $self->new_with_coercions('Paws::Cloud9::DescribeEnvironments', @_);
46 return $self->caller->do_call($self, $call_object);
47 }
48 sub DescribeEnvironmentStatus {
49 my $self = shift;
50 my $call_object = $self->new_with_coercions('Paws::Cloud9::DescribeEnvironmentStatus', @_);
51 return $self->caller->do_call($self, $call_object);
52 }
53 sub ListEnvironments {
54 my $self = shift;
55 my $call_object = $self->new_with_coercions('Paws::Cloud9::ListEnvironments', @_);
56 return $self->caller->do_call($self, $call_object);
57 }
58 sub ListTagsForResource {
59 my $self = shift;
60 my $call_object = $self->new_with_coercions('Paws::Cloud9::ListTagsForResource', @_);
61 return $self->caller->do_call($self, $call_object);
62 }
63 sub TagResource {
64 my $self = shift;
65 my $call_object = $self->new_with_coercions('Paws::Cloud9::TagResource', @_);
66 return $self->caller->do_call($self, $call_object);
67 }
68 sub UntagResource {
69 my $self = shift;
70 my $call_object = $self->new_with_coercions('Paws::Cloud9::UntagResource', @_);
71 return $self->caller->do_call($self, $call_object);
72 }
73 sub UpdateEnvironment {
74 my $self = shift;
75 my $call_object = $self->new_with_coercions('Paws::Cloud9::UpdateEnvironment', @_);
76 return $self->caller->do_call($self, $call_object);
77 }
78 sub UpdateEnvironmentMembership {
79 my $self = shift;
80 my $call_object = $self->new_with_coercions('Paws::Cloud9::UpdateEnvironmentMembership', @_);
81 return $self->caller->do_call($self, $call_object);
82 }
83
84 sub DescribeAllEnvironmentMemberships {
85 my $self = shift;
86  
87 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
88 my $result = $self->DescribeEnvironmentMemberships(@_);
89 my $next_result = $result;
90  
91 if (not defined $callback) {
92 while ($next_result->nextToken) {
93 $next_result = $self->DescribeEnvironmentMemberships(@_, nextToken => $next_result->nextToken);
94 push @{ $result->memberships }, @{ $next_result->memberships };
95 }
96 return $result;
97 } else {
98 while ($result->nextToken) {
99 $callback->($_ => 'memberships') foreach (@{ $result->memberships });
100 $result = $self->DescribeEnvironmentMemberships(@_, nextToken => $result->nextToken);
101 }
102 $callback->($_ => 'memberships') foreach (@{ $result->memberships });
103 }
104  
105 return undef
106 }
107 sub ListAllEnvironments {
108 my $self = shift;
109  
110 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
111 my $result = $self->ListEnvironments(@_);
112 my $next_result = $result;
113  
114 if (not defined $callback) {
115 while ($next_result->nextToken) {
116 $next_result = $self->ListEnvironments(@_, nextToken => $next_result->nextToken);
117 push @{ $result->environmentIds }, @{ $next_result->environmentIds };
118 }
119 return $result;
120 } else {
121 while ($result->nextToken) {
122 $callback->($_ => 'environmentIds') foreach (@{ $result->environmentIds });
123 $result = $self->ListEnvironments(@_, nextToken => $result->nextToken);
124 }
125 $callback->($_ => 'environmentIds') foreach (@{ $result->environmentIds });
126 }
127  
128 return undef
129 }
130  
131  
132 sub operations { qw/CreateEnvironmentEC2 CreateEnvironmentMembership DeleteEnvironment DeleteEnvironmentMembership DescribeEnvironmentMemberships DescribeEnvironments DescribeEnvironmentStatus ListEnvironments ListTagsForResource TagResource UntagResource UpdateEnvironment UpdateEnvironmentMembership / }
133  
134 1;
135  
136 ### main pod documentation begin ###
137  
138 =head1 NAME
139  
140 Paws::Cloud9 - Perl Interface to AWS AWS Cloud9
141  
142 =head1 SYNOPSIS
143  
144 use Paws;
145  
146 my $obj = Paws->service('Cloud9');
147 my $res = $obj->Method(
148 Arg1 => $val1,
149 Arg2 => [ 'V1', 'V2' ],
150 # if Arg3 is an object, the HashRef will be used as arguments to the constructor
151 # of the arguments type
152 Arg3 => { Att1 => 'Val1' },
153 # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
154 # the constructor of the arguments type
155 Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
156 );
157  
158 =head1 DESCRIPTION
159  
160 Cloud9
161  
162 Cloud9 is a collection of tools that you can use to code, build, run,
163 test, debug, and release software in the cloud.
164  
165 For more information about Cloud9, see the Cloud9 User Guide
166 (https://docs.aws.amazon.com/cloud9/latest/user-guide).
167  
168 Cloud9 supports these operations:
169  
170 =over
171  
172 =item *
173  
174 C<CreateEnvironmentEC2>: Creates an Cloud9 development environment,
175 launches an Amazon EC2 instance, and then connects from the instance to
176 the environment.
177  
178 =item *
179  
180 C<CreateEnvironmentMembership>: Adds an environment member to an
181 environment.
182  
183 =item *
184  
185 C<DeleteEnvironment>: Deletes an environment. If an Amazon EC2 instance
186 is connected to the environment, also terminates the instance.
187  
188 =item *
189  
190 C<DeleteEnvironmentMembership>: Deletes an environment member from an
191 environment.
192  
193 =item *
194  
195 C<DescribeEnvironmentMemberships>: Gets information about environment
196 members for an environment.
197  
198 =item *
199  
200 C<DescribeEnvironments>: Gets information about environments.
201  
202 =item *
203  
204 C<DescribeEnvironmentStatus>: Gets status information for an
205 environment.
206  
207 =item *
208  
209 C<ListEnvironments>: Gets a list of environment identifiers.
210  
211 =item *
212  
213 C<ListTagsForResource>: Gets the tags for an environment.
214  
215 =item *
216  
217 C<TagResource>: Adds tags to an environment.
218  
219 =item *
220  
221 C<UntagResource>: Removes tags from an environment.
222  
223 =item *
224  
225 C<UpdateEnvironment>: Changes the settings of an existing environment.
226  
227 =item *
228  
229 C<UpdateEnvironmentMembership>: Changes the settings of an existing
230 environment member for an environment.
231  
232 =back
233  
234  
235 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23>
236  
237  
238 =head1 METHODS
239  
240 =head2 CreateEnvironmentEC2
241  
242 =over
243  
244 =item InstanceType => Str
245  
246 =item Name => Str
247  
248 =item [AutomaticStopTimeMinutes => Int]
249  
250 =item [ClientRequestToken => Str]
251  
252 =item [ConnectionType => Str]
253  
254 =item [Description => Str]
255  
256 =item [ImageId => Str]
257  
258 =item [OwnerArn => Str]
259  
260 =item [SubnetId => Str]
261  
262 =item [Tags => ArrayRef[L<Paws::Cloud9::Tag>]]
263  
264  
265 =back
266  
267 Each argument is described in detail in: L<Paws::Cloud9::CreateEnvironmentEC2>
268  
269 Returns: a L<Paws::Cloud9::CreateEnvironmentEC2Result> instance
270  
271 Creates an Cloud9 development environment, launches an Amazon Elastic
272 Compute Cloud (Amazon EC2) instance, and then connects from the
273 instance to the environment.
274  
275  
276 =head2 CreateEnvironmentMembership
277  
278 =over
279  
280 =item EnvironmentId => Str
281  
282 =item Permissions => Str
283  
284 =item UserArn => Str
285  
286  
287 =back
288  
289 Each argument is described in detail in: L<Paws::Cloud9::CreateEnvironmentMembership>
290  
291 Returns: a L<Paws::Cloud9::CreateEnvironmentMembershipResult> instance
292  
293 Adds an environment member to an Cloud9 development environment.
294  
295  
296 =head2 DeleteEnvironment
297  
298 =over
299  
300 =item EnvironmentId => Str
301  
302  
303 =back
304  
305 Each argument is described in detail in: L<Paws::Cloud9::DeleteEnvironment>
306  
307 Returns: a L<Paws::Cloud9::DeleteEnvironmentResult> instance
308  
309 Deletes an Cloud9 development environment. If an Amazon EC2 instance is
310 connected to the environment, also terminates the instance.
311  
312  
313 =head2 DeleteEnvironmentMembership
314  
315 =over
316  
317 =item EnvironmentId => Str
318  
319 =item UserArn => Str
320  
321  
322 =back
323  
324 Each argument is described in detail in: L<Paws::Cloud9::DeleteEnvironmentMembership>
325  
326 Returns: a L<Paws::Cloud9::DeleteEnvironmentMembershipResult> instance
327  
328 Deletes an environment member from an Cloud9 development environment.
329  
330  
331 =head2 DescribeEnvironmentMemberships
332  
333 =over
334  
335 =item [EnvironmentId => Str]
336  
337 =item [MaxResults => Int]
338  
339 =item [NextToken => Str]
340  
341 =item [Permissions => ArrayRef[Str|Undef]]
342  
343 =item [UserArn => Str]
344  
345  
346 =back
347  
348 Each argument is described in detail in: L<Paws::Cloud9::DescribeEnvironmentMemberships>
349  
350 Returns: a L<Paws::Cloud9::DescribeEnvironmentMembershipsResult> instance
351  
352 Gets information about environment members for an Cloud9 development
353 environment.
354  
355  
356 =head2 DescribeEnvironments
357  
358 =over
359  
360 =item EnvironmentIds => ArrayRef[Str|Undef]
361  
362  
363 =back
364  
365 Each argument is described in detail in: L<Paws::Cloud9::DescribeEnvironments>
366  
367 Returns: a L<Paws::Cloud9::DescribeEnvironmentsResult> instance
368  
369 Gets information about Cloud9 development environments.
370  
371  
372 =head2 DescribeEnvironmentStatus
373  
374 =over
375  
376 =item EnvironmentId => Str
377  
378  
379 =back
380  
381 Each argument is described in detail in: L<Paws::Cloud9::DescribeEnvironmentStatus>
382  
383 Returns: a L<Paws::Cloud9::DescribeEnvironmentStatusResult> instance
384  
385 Gets status information for an Cloud9 development environment.
386  
387  
388 =head2 ListEnvironments
389  
390 =over
391  
392 =item [MaxResults => Int]
393  
394 =item [NextToken => Str]
395  
396  
397 =back
398  
399 Each argument is described in detail in: L<Paws::Cloud9::ListEnvironments>
400  
401 Returns: a L<Paws::Cloud9::ListEnvironmentsResult> instance
402  
403 Gets a list of Cloud9 development environment identifiers.
404  
405  
406 =head2 ListTagsForResource
407  
408 =over
409  
410 =item ResourceARN => Str
411  
412  
413 =back
414  
415 Each argument is described in detail in: L<Paws::Cloud9::ListTagsForResource>
416  
417 Returns: a L<Paws::Cloud9::ListTagsForResourceResponse> instance
418  
419 Gets a list of the tags associated with an Cloud9 development
420 environment.
421  
422  
423 =head2 TagResource
424  
425 =over
426  
427 =item ResourceARN => Str
428  
429 =item Tags => ArrayRef[L<Paws::Cloud9::Tag>]
430  
431  
432 =back
433  
434 Each argument is described in detail in: L<Paws::Cloud9::TagResource>
435  
436 Returns: a L<Paws::Cloud9::TagResourceResponse> instance
437  
438 Adds tags to an Cloud9 development environment.
439  
440 Tags that you add to an Cloud9 environment by using this method will
441 NOT be automatically propagated to underlying resources.
442  
443  
444 =head2 UntagResource
445  
446 =over
447  
448 =item ResourceARN => Str
449  
450 =item TagKeys => ArrayRef[Str|Undef]
451  
452  
453 =back
454  
455 Each argument is described in detail in: L<Paws::Cloud9::UntagResource>
456  
457 Returns: a L<Paws::Cloud9::UntagResourceResponse> instance
458  
459 Removes tags from an Cloud9 development environment.
460  
461  
462 =head2 UpdateEnvironment
463  
464 =over
465  
466 =item EnvironmentId => Str
467  
468 =item [Description => Str]
469  
470 =item [Name => Str]
471  
472  
473 =back
474  
475 Each argument is described in detail in: L<Paws::Cloud9::UpdateEnvironment>
476  
477 Returns: a L<Paws::Cloud9::UpdateEnvironmentResult> instance
478  
479 Changes the settings of an existing Cloud9 development environment.
480  
481  
482 =head2 UpdateEnvironmentMembership
483  
484 =over
485  
486 =item EnvironmentId => Str
487  
488 =item Permissions => Str
489  
490 =item UserArn => Str
491  
492  
493 =back
494  
495 Each argument is described in detail in: L<Paws::Cloud9::UpdateEnvironmentMembership>
496  
497 Returns: a L<Paws::Cloud9::UpdateEnvironmentMembershipResult> instance
498  
499 Changes the settings of an existing environment member for an Cloud9
500 development environment.
501  
502  
503  
504  
505 =head1 PAGINATORS
506  
507 Paginator methods are helpers that repetively call methods that return partial results
508  
509 =head2 DescribeAllEnvironmentMemberships(sub { },[EnvironmentId => Str, MaxResults => Int, NextToken => Str, Permissions => ArrayRef[Str|Undef], UserArn => Str])
510  
511 =head2 DescribeAllEnvironmentMemberships([EnvironmentId => Str, MaxResults => Int, NextToken => Str, Permissions => ArrayRef[Str|Undef], UserArn => Str])
512  
513  
514 If passed a sub as first parameter, it will call the sub for each element found in :
515  
516 - memberships, passing the object as the first parameter, and the string 'memberships' as the second parameter
517  
518 If not, it will return a a L<Paws::Cloud9::DescribeEnvironmentMembershipsResult> 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.
519  
520  
521 =head2 ListAllEnvironments(sub { },[MaxResults => Int, NextToken => Str])
522  
523 =head2 ListAllEnvironments([MaxResults => Int, NextToken => Str])
524  
525  
526 If passed a sub as first parameter, it will call the sub for each element found in :
527  
528 - environmentIds, passing the object as the first parameter, and the string 'environmentIds' as the second parameter
529  
530 If not, it will return a a L<Paws::Cloud9::ListEnvironmentsResult> 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.
531  
532  
533  
534  
535  
536 =head1 SEE ALSO
537  
538 This service class forms part of L<Paws>
539  
540 =head1 BUGS and CONTRIBUTIONS
541  
542 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
543  
544 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
545  
546 =cut
547