blib/lib/Paws/MQ.pm

filter: Statementstmt 15.1% 15 / 99 Branchbran 0.0% 0 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 19.3% 6 / 31 Podpod 82.1% 23 / 28 totaltotal 26.5% 44 / 166 CC 7 SCAR 24.9
CC
7
Cov
14%
ListAllBrokers
56.0
version
2.0
flattened_arrays
2.0
CRAP 12.1
« blib/lib/Paws/Net/QueryCaller.pm ↑ Summary blib/lib/Paws/CognitoIdentity.pm »
1 package Paws::MQ;
2 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶ sub service { 'mq' }
Subroutine service: called CC=1 SCAR=0.0
Pod undocumented
4 1 ▶ sub signing_name { 'mq' }
Subroutine signing_name: called CC=1 SCAR=0.0
Pod undocumented
5 0 ▶ sub version { '2017-11-27' }
Subroutine version: not called CC=1 SCAR=6.9
Pod undocumented
6 0 ▶ sub flattened_arrays { 0 }
Subroutine flattened_arrays: not called CC=1 SCAR=6.9
Pod undocumented
7 1 has max_attempts => (is => 'ro', isa => 'Int', default => 5);
8 1 ▶ has retry => (is => 'ro', isa => 'HashRef', default => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
9 1 { base => 'rand', type => 'exponential', growth_factor => 2 }
10 1 });
11 1 ▶ has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [
Subroutine __ANON__: called CC=1 SCAR=0.0
12 1 ] });
13  
14 1 with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::RestJsonCaller';
15  
16
17 0 ▶ sub CreateBroker {
Subroutine CreateBroker: not called CC=1 SCAR=6.9
Pod documented
18 0 my $self = shift;
19 0 my $call_object = $self->new_with_coercions('Paws::MQ::CreateBroker', @_);
20 0 return $self->caller->do_call($self, $call_object);
21 }
22 0 ▶ sub CreateConfiguration {
Subroutine CreateConfiguration: not called CC=1 SCAR=6.9
Pod documented
23 0 my $self = shift;
24 0 my $call_object = $self->new_with_coercions('Paws::MQ::CreateConfiguration', @_);
25 0 return $self->caller->do_call($self, $call_object);
26 }
27 0 ▶ sub CreateTags {
Subroutine CreateTags: not called CC=1 SCAR=6.9
Pod documented
28 0 my $self = shift;
29 0 my $call_object = $self->new_with_coercions('Paws::MQ::CreateTags', @_);
30 0 return $self->caller->do_call($self, $call_object);
31 }
32 0 ▶ sub CreateUser {
Subroutine CreateUser: not called CC=1 SCAR=6.9
Pod documented
33 0 my $self = shift;
34 0 my $call_object = $self->new_with_coercions('Paws::MQ::CreateUser', @_);
35 0 return $self->caller->do_call($self, $call_object);
36 }
37 0 ▶ sub DeleteBroker {
Subroutine DeleteBroker: not called CC=1 SCAR=6.9
Pod documented
38 0 my $self = shift;
39 0 my $call_object = $self->new_with_coercions('Paws::MQ::DeleteBroker', @_);
40 0 return $self->caller->do_call($self, $call_object);
41 }
42 0 ▶ sub DeleteTags {
Subroutine DeleteTags: not called CC=1 SCAR=6.9
Pod documented
43 0 my $self = shift;
44 0 my $call_object = $self->new_with_coercions('Paws::MQ::DeleteTags', @_);
45 0 return $self->caller->do_call($self, $call_object);
46 }
47 0 ▶ sub DeleteUser {
Subroutine DeleteUser: not called CC=1 SCAR=6.9
Pod documented
48 0 my $self = shift;
49 0 my $call_object = $self->new_with_coercions('Paws::MQ::DeleteUser', @_);
50 0 return $self->caller->do_call($self, $call_object);
51 }
52 0 ▶ sub DescribeBroker {
Subroutine DescribeBroker: not called CC=1 SCAR=6.9
Pod documented
53 0 my $self = shift;
54 0 my $call_object = $self->new_with_coercions('Paws::MQ::DescribeBroker', @_);
55 0 return $self->caller->do_call($self, $call_object);
56 }
57 0 ▶ sub DescribeBrokerEngineTypes {
Subroutine DescribeBrokerEngineTypes: not called CC=1 SCAR=6.9
Pod documented
58 0 my $self = shift;
59 0 my $call_object = $self->new_with_coercions('Paws::MQ::DescribeBrokerEngineTypes', @_);
60 0 return $self->caller->do_call($self, $call_object);
61 }
62 0 ▶ sub DescribeBrokerInstanceOptions {
Subroutine DescribeBrokerInstanceOptions: not called CC=1 SCAR=6.9
Pod documented
63 0 my $self = shift;
64 0 my $call_object = $self->new_with_coercions('Paws::MQ::DescribeBrokerInstanceOptions', @_);
65 0 return $self->caller->do_call($self, $call_object);
66 }
67 0 ▶ sub DescribeConfiguration {
Subroutine DescribeConfiguration: not called CC=1 SCAR=6.9
Pod documented
68 0 my $self = shift;
69 0 my $call_object = $self->new_with_coercions('Paws::MQ::DescribeConfiguration', @_);
70 0 return $self->caller->do_call($self, $call_object);
71 }
72 0 ▶ sub DescribeConfigurationRevision {
Subroutine DescribeConfigurationRevision: not called CC=1 SCAR=6.9
Pod documented
73 0 my $self = shift;
74 0 my $call_object = $self->new_with_coercions('Paws::MQ::DescribeConfigurationRevision', @_);
75 0 return $self->caller->do_call($self, $call_object);
76 }
77 0 ▶ sub DescribeUser {
Subroutine DescribeUser: not called CC=1 SCAR=6.9
Pod documented
78 0 my $self = shift;
79 0 my $call_object = $self->new_with_coercions('Paws::MQ::DescribeUser', @_);
80 0 return $self->caller->do_call($self, $call_object);
81 }
82 1 ▶ sub ListBrokers {
Subroutine ListBrokers: called CC=1 SCAR=0.0
Pod documented
83 1 my $self = shift;
84 1 my $call_object = $self->new_with_coercions('Paws::MQ::ListBrokers', @_);
85 1 return $self->caller->do_call($self, $call_object);
86 }
87 0 ▶ sub ListConfigurationRevisions {
Subroutine ListConfigurationRevisions: not called CC=1 SCAR=6.9
Pod documented
88 0 my $self = shift;
89 0 my $call_object = $self->new_with_coercions('Paws::MQ::ListConfigurationRevisions', @_);
90 0 return $self->caller->do_call($self, $call_object);
91 }
92 0 ▶ sub ListConfigurations {
Subroutine ListConfigurations: not called CC=1 SCAR=6.9
Pod documented
93 0 my $self = shift;
94 0 my $call_object = $self->new_with_coercions('Paws::MQ::ListConfigurations', @_);
95 0 return $self->caller->do_call($self, $call_object);
96 }
97 0 ▶ sub ListTags {
Subroutine ListTags: not called CC=1 SCAR=6.9
Pod documented
98 0 my $self = shift;
99 0 my $call_object = $self->new_with_coercions('Paws::MQ::ListTags', @_);
100 0 return $self->caller->do_call($self, $call_object);
101 }
102 0 ▶ sub ListUsers {
Subroutine ListUsers: not called CC=1 SCAR=6.9
Pod documented
103 0 my $self = shift;
104 0 my $call_object = $self->new_with_coercions('Paws::MQ::ListUsers', @_);
105 0 return $self->caller->do_call($self, $call_object);
106 }
107 0 ▶ sub RebootBroker {
Subroutine RebootBroker: not called CC=1 SCAR=6.9
Pod documented
108 0 my $self = shift;
109 0 my $call_object = $self->new_with_coercions('Paws::MQ::RebootBroker', @_);
110 0 return $self->caller->do_call($self, $call_object);
111 }
112 0 ▶ sub UpdateBroker {
Subroutine UpdateBroker: not called CC=1 SCAR=6.9
Pod documented
113 0 my $self = shift;
114 0 my $call_object = $self->new_with_coercions('Paws::MQ::UpdateBroker', @_);
115 0 return $self->caller->do_call($self, $call_object);
116 }
117 0 ▶ sub UpdateConfiguration {
Subroutine UpdateConfiguration: not called CC=1 SCAR=6.9
Pod documented
118 0 my $self = shift;
119 0 my $call_object = $self->new_with_coercions('Paws::MQ::UpdateConfiguration', @_);
120 0 return $self->caller->do_call($self, $call_object);
121 }
122 0 ▶ sub UpdateUser {
Subroutine UpdateUser: not called CC=1 SCAR=6.9
Pod documented
123 0 my $self = shift;
124 0 my $call_object = $self->new_with_coercions('Paws::MQ::UpdateUser', @_);
125 0 return $self->caller->do_call($self, $call_object);
126 }
127
128 0 ▶ sub ListAllBrokers {
Subroutine ListAllBrokers: not called CC=7 SCAR=40.3
Pod documented
129 0 my $self = shift;
130  
131 0 ▶ my $callback = shift @_ if (ref($_[0]) eq 'CODE');
Branch: 1 branch
BranchTrueFalseTotal
if ref $_[0] eq "CODE" 0 0 0
132 0 my $result = $self->ListBrokers(@_);
133 0 my $next_result = $result;
134  
135 0 ▶ if (not defined $callback) {
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $callback) { } 0 0 0
136 0 ▶ while ($next_result->NextToken) {
Branch: 1 branch
BranchTrueFalseTotal
if ($next_result->NextToken) 0 0 0
137 0 $next_result = $self->ListBrokers(@_, NextToken => $next_result->NextToken);
138 0 push @{ $result->BrokerSummaries }, @{ $next_result->BrokerSummaries };
139 }
140 0 return $result;
141 } else {
142 0 ▶ while ($result->NextToken) {
Branch: 1 branch
BranchTrueFalseTotal
if ($result->NextToken) 0 0 0
143 0 $callback->($_ => 'BrokerSummaries') foreach (@{ $result->BrokerSummaries });
144 0 $result = $self->ListBrokers(@_, NextToken => $result->NextToken);
145 }
146 0 $callback->($_ => 'BrokerSummaries') foreach (@{ $result->BrokerSummaries });
147 }
148  
149 return undef
150 0 }
151  
152  
153 0 ▶ sub operations { qw/CreateBroker CreateConfiguration CreateTags CreateUser DeleteBroker DeleteTags DeleteUser DescribeBroker DescribeBrokerEngineTypes DescribeBrokerInstanceOptions DescribeConfiguration DescribeConfigurationRevision DescribeUser ListBrokers ListConfigurationRevisions ListConfigurations ListTags ListUsers RebootBroker UpdateBroker UpdateConfiguration UpdateUser / }
Subroutine operations: not called CC=1 SCAR=6.9
Pod undocumented
154  
155 1 1;
156  
157 ### main pod documentation begin ###
158  
159 =head1 NAME
160  
161 Paws::MQ - Perl Interface to AWS AmazonMQ
162  
163 =head1 SYNOPSIS
164  
165 use Paws;
166  
167 my $obj = Paws->service('MQ');
168 my $res = $obj->Method(
169 Arg1 => $val1,
170 Arg2 => [ 'V1', 'V2' ],
171 # if Arg3 is an object, the HashRef will be used as arguments to the constructor
172 # of the arguments type
173 Arg3 => { Att1 => 'Val1' },
174 # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
175 # the constructor of the arguments type
176 Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
177 );
178  
179 =head1 DESCRIPTION
180  
181 Amazon MQ is a managed message broker service for Apache ActiveMQ and
182 RabbitMQ that makes it easy to set up and operate message brokers in
183 the cloud. A message broker allows software applications and components
184 to communicate using various programming languages, operating systems,
185 and formal messaging protocols.
186  
187 For the AWS API documentation, see L<https://docs.aws.amazon.com/amazon-mq/>
188  
189  
190 =head1 METHODS
191  
192 =head2 CreateBroker
193  
194 =over
195  
196 =item [AuthenticationStrategy => Str]
197  
198 =item [AutoMinorVersionUpgrade => Bool]
199  
200 =item [BrokerName => Str]
201  
202 =item [Configuration => L<Paws::MQ::ConfigurationId>]
203  
204 =item [CreatorRequestId => Str]
205  
206 =item [DeploymentMode => Str]
207  
208 =item [EncryptionOptions => L<Paws::MQ::EncryptionOptions>]
209  
210 =item [EngineType => Str]
211  
212 =item [EngineVersion => Str]
213  
214 =item [HostInstanceType => Str]
215  
216 =item [LdapServerMetadata => L<Paws::MQ::LdapServerMetadataInput>]
217  
218 =item [Logs => L<Paws::MQ::Logs>]
219  
220 =item [MaintenanceWindowStartTime => L<Paws::MQ::WeeklyStartTime>]
221  
222 =item [PubliclyAccessible => Bool]
223  
224 =item [SecurityGroups => ArrayRef[Str|Undef]]
225  
226 =item [StorageType => Str]
227  
228 =item [SubnetIds => ArrayRef[Str|Undef]]
229  
230 =item [Tags => L<Paws::MQ::__mapOf__string>]
231  
232 =item [Users => ArrayRef[L<Paws::MQ::User>]]
233  
234  
235 =back
236  
237 Each argument is described in detail in: L<Paws::MQ::CreateBroker>
238  
239 Returns: a L<Paws::MQ::CreateBrokerResponse> instance
240  
241 Creates a broker. Note: This API is asynchronous.
242  
243  
244 =head2 CreateConfiguration
245  
246 =over
247  
248 =item [AuthenticationStrategy => Str]
249  
250 =item [EngineType => Str]
251  
252 =item [EngineVersion => Str]
253  
254 =item [Name => Str]
255  
256 =item [Tags => L<Paws::MQ::__mapOf__string>]
257  
258  
259 =back
260  
261 Each argument is described in detail in: L<Paws::MQ::CreateConfiguration>
262  
263 Returns: a L<Paws::MQ::CreateConfigurationResponse> instance
264  
265 Creates a new configuration for the specified configuration name.
266 Amazon MQ uses the default configuration (the engine type and version).
267  
268  
269 =head2 CreateTags
270  
271 =over
272  
273 =item ResourceArn => Str
274  
275 =item [Tags => L<Paws::MQ::__mapOf__string>]
276  
277  
278 =back
279  
280 Each argument is described in detail in: L<Paws::MQ::CreateTags>
281  
282 Returns: nothing
283  
284 Add a tag to a resource.
285  
286  
287 =head2 CreateUser
288  
289 =over
290  
291 =item BrokerId => Str
292  
293 =item Username => Str
294  
295 =item [ConsoleAccess => Bool]
296  
297 =item [Groups => ArrayRef[Str|Undef]]
298  
299 =item [Password => Str]
300  
301  
302 =back
303  
304 Each argument is described in detail in: L<Paws::MQ::CreateUser>
305  
306 Returns: a L<Paws::MQ::CreateUserResponse> instance
307  
308 Creates an ActiveMQ user.
309  
310  
311 =head2 DeleteBroker
312  
313 =over
314  
315 =item BrokerId => Str
316  
317  
318 =back
319  
320 Each argument is described in detail in: L<Paws::MQ::DeleteBroker>
321  
322 Returns: a L<Paws::MQ::DeleteBrokerResponse> instance
323  
324 Deletes a broker. Note: This API is asynchronous.
325  
326  
327 =head2 DeleteTags
328  
329 =over
330  
331 =item ResourceArn => Str
332  
333 =item TagKeys => ArrayRef[Str|Undef]
334  
335  
336 =back
337  
338 Each argument is described in detail in: L<Paws::MQ::DeleteTags>
339  
340 Returns: nothing
341  
342 Removes a tag from a resource.
343  
344  
345 =head2 DeleteUser
346  
347 =over
348  
349 =item BrokerId => Str
350  
351 =item Username => Str
352  
353  
354 =back
355  
356 Each argument is described in detail in: L<Paws::MQ::DeleteUser>
357  
358 Returns: a L<Paws::MQ::DeleteUserResponse> instance
359  
360 Deletes an ActiveMQ user.
361  
362  
363 =head2 DescribeBroker
364  
365 =over
366  
367 =item BrokerId => Str
368  
369  
370 =back
371  
372 Each argument is described in detail in: L<Paws::MQ::DescribeBroker>
373  
374 Returns: a L<Paws::MQ::DescribeBrokerResponse> instance
375  
376 Returns information about the specified broker.
377  
378  
379 =head2 DescribeBrokerEngineTypes
380  
381 =over
382  
383 =item [EngineType => Str]
384  
385 =item [MaxResults => Int]
386  
387 =item [NextToken => Str]
388  
389  
390 =back
391  
392 Each argument is described in detail in: L<Paws::MQ::DescribeBrokerEngineTypes>
393  
394 Returns: a L<Paws::MQ::DescribeBrokerEngineTypesResponse> instance
395  
396 Describe available engine types and versions.
397  
398  
399 =head2 DescribeBrokerInstanceOptions
400  
401 =over
402  
403 =item [EngineType => Str]
404  
405 =item [HostInstanceType => Str]
406  
407 =item [MaxResults => Int]
408  
409 =item [NextToken => Str]
410  
411 =item [StorageType => Str]
412  
413  
414 =back
415  
416 Each argument is described in detail in: L<Paws::MQ::DescribeBrokerInstanceOptions>
417  
418 Returns: a L<Paws::MQ::DescribeBrokerInstanceOptionsResponse> instance
419  
420 Describe available broker instance options.
421  
422  
423 =head2 DescribeConfiguration
424  
425 =over
426  
427 =item ConfigurationId => Str
428  
429  
430 =back
431  
432 Each argument is described in detail in: L<Paws::MQ::DescribeConfiguration>
433  
434 Returns: a L<Paws::MQ::DescribeConfigurationResponse> instance
435  
436 Returns information about the specified configuration.
437  
438  
439 =head2 DescribeConfigurationRevision
440  
441 =over
442  
443 =item ConfigurationId => Str
444  
445 =item ConfigurationRevision => Str
446  
447  
448 =back
449  
450 Each argument is described in detail in: L<Paws::MQ::DescribeConfigurationRevision>
451  
452 Returns: a L<Paws::MQ::DescribeConfigurationRevisionResponse> instance
453  
454 Returns the specified configuration revision for the specified
455 configuration.
456  
457  
458 =head2 DescribeUser
459  
460 =over
461  
462 =item BrokerId => Str
463  
464 =item Username => Str
465  
466  
467 =back
468  
469 Each argument is described in detail in: L<Paws::MQ::DescribeUser>
470  
471 Returns: a L<Paws::MQ::DescribeUserResponse> instance
472  
473 Returns information about an ActiveMQ user.
474  
475  
476 =head2 ListBrokers
477  
478 =over
479  
480 =item [MaxResults => Int]
481  
482 =item [NextToken => Str]
483  
484  
485 =back
486  
487 Each argument is described in detail in: L<Paws::MQ::ListBrokers>
488  
489 Returns: a L<Paws::MQ::ListBrokersResponse> instance
490  
491 Returns a list of all brokers.
492  
493  
494 =head2 ListConfigurationRevisions
495  
496 =over
497  
498 =item ConfigurationId => Str
499  
500 =item [MaxResults => Int]
501  
502 =item [NextToken => Str]
503  
504  
505 =back
506  
507 Each argument is described in detail in: L<Paws::MQ::ListConfigurationRevisions>
508  
509 Returns: a L<Paws::MQ::ListConfigurationRevisionsResponse> instance
510  
511 Returns a list of all revisions for the specified configuration.
512  
513  
514 =head2 ListConfigurations
515  
516 =over
517  
518 =item [MaxResults => Int]
519  
520 =item [NextToken => Str]
521  
522  
523 =back
524  
525 Each argument is described in detail in: L<Paws::MQ::ListConfigurations>
526  
527 Returns: a L<Paws::MQ::ListConfigurationsResponse> instance
528  
529 Returns a list of all configurations.
530  
531  
532 =head2 ListTags
533  
534 =over
535  
536 =item ResourceArn => Str
537  
538  
539 =back
540  
541 Each argument is described in detail in: L<Paws::MQ::ListTags>
542  
543 Returns: a L<Paws::MQ::ListTagsResponse> instance
544  
545 Lists tags for a resource.
546  
547  
548 =head2 ListUsers
549  
550 =over
551  
552 =item BrokerId => Str
553  
554 =item [MaxResults => Int]
555  
556 =item [NextToken => Str]
557  
558  
559 =back
560  
561 Each argument is described in detail in: L<Paws::MQ::ListUsers>
562  
563 Returns: a L<Paws::MQ::ListUsersResponse> instance
564  
565 Returns a list of all ActiveMQ users.
566  
567  
568 =head2 RebootBroker
569  
570 =over
571  
572 =item BrokerId => Str
573  
574  
575 =back
576  
577 Each argument is described in detail in: L<Paws::MQ::RebootBroker>
578  
579 Returns: a L<Paws::MQ::RebootBrokerResponse> instance
580  
581 Reboots a broker. Note: This API is asynchronous.
582  
583  
584 =head2 UpdateBroker
585  
586 =over
587  
588 =item BrokerId => Str
589  
590 =item [AuthenticationStrategy => Str]
591  
592 =item [AutoMinorVersionUpgrade => Bool]
593  
594 =item [Configuration => L<Paws::MQ::ConfigurationId>]
595  
596 =item [EngineVersion => Str]
597  
598 =item [HostInstanceType => Str]
599  
600 =item [LdapServerMetadata => L<Paws::MQ::LdapServerMetadataInput>]
601  
602 =item [Logs => L<Paws::MQ::Logs>]
603  
604 =item [SecurityGroups => ArrayRef[Str|Undef]]
605  
606  
607 =back
608  
609 Each argument is described in detail in: L<Paws::MQ::UpdateBroker>
610  
611 Returns: a L<Paws::MQ::UpdateBrokerResponse> instance
612  
613 Adds a pending configuration change to a broker.
614  
615  
616 =head2 UpdateConfiguration
617  
618 =over
619  
620 =item ConfigurationId => Str
621  
622 =item [Data => Str]
623  
624 =item [Description => Str]
625  
626  
627 =back
628  
629 Each argument is described in detail in: L<Paws::MQ::UpdateConfiguration>
630  
631 Returns: a L<Paws::MQ::UpdateConfigurationResponse> instance
632  
633 Updates the specified configuration.
634  
635  
636 =head2 UpdateUser
637  
638 =over
639  
640 =item BrokerId => Str
641  
642 =item Username => Str
643  
644 =item [ConsoleAccess => Bool]
645  
646 =item [Groups => ArrayRef[Str|Undef]]
647  
648 =item [Password => Str]
649  
650  
651 =back
652  
653 Each argument is described in detail in: L<Paws::MQ::UpdateUser>
654  
655 Returns: a L<Paws::MQ::UpdateUserResponse> instance
656  
657 Updates the information for an ActiveMQ user.
658  
659  
660  
661  
662 =head1 PAGINATORS
663  
664 Paginator methods are helpers that repetively call methods that return partial results
665  
666 =head2 ListAllBrokers(sub { },[MaxResults => Int, NextToken => Str])
667  
668 =head2 ListAllBrokers([MaxResults => Int, NextToken => Str])
669  
670  
671 If passed a sub as first parameter, it will call the sub for each element found in :
672  
673 - BrokerSummaries, passing the object as the first parameter, and the string 'BrokerSummaries' as the second parameter
674  
675 If not, it will return a a L<Paws::MQ::ListBrokersResponse> 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.
676  
677  
678  
679  
680  
681 =head1 SEE ALSO
682  
683 This service class forms part of L<Paws>
684  
685 =head1 BUGS and CONTRIBUTIONS
686  
687 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
688  
689 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
690  
691 =cut
692  
« blib/lib/Paws/Net/QueryCaller.pm ↑ Summary blib/lib/Paws/CognitoIdentity.pm »