blib/lib/Paws/ServiceDiscovery.pm untested

filter: Statementstmt 0.0% 0 / 173 Branchbran 0.0% 0 / 16 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 37 Podpod 0.0% 0 / 36 totaltotal 0.0% 0 / 262 CC 9 SCAR 15.4
CC
9
Cov
0%
ListAllInstances
12.0
ListAllNamespaces
12.0
ListAllOperations
12.0
CRAP 4.7
1 package Paws::ServiceDiscovery;
2 use Moose;
3 sub service { 'servicediscovery' }
4 sub signing_name { 'servicediscovery' }
5 sub version { '2017-03-14' }
6 sub target_prefix { 'Route53AutoNaming_v20170314' }
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 CreateHttpNamespace {
19 my $self = shift;
20 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::CreateHttpNamespace', @_);
21 return $self->caller->do_call($self, $call_object);
22 }
23 sub CreatePrivateDnsNamespace {
24 my $self = shift;
25 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::CreatePrivateDnsNamespace', @_);
26 return $self->caller->do_call($self, $call_object);
27 }
28 sub CreatePublicDnsNamespace {
29 my $self = shift;
30 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::CreatePublicDnsNamespace', @_);
31 return $self->caller->do_call($self, $call_object);
32 }
33 sub CreateService {
34 my $self = shift;
35 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::CreateService', @_);
36 return $self->caller->do_call($self, $call_object);
37 }
38 sub DeleteNamespace {
39 my $self = shift;
40 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::DeleteNamespace', @_);
41 return $self->caller->do_call($self, $call_object);
42 }
43 sub DeleteService {
44 my $self = shift;
45 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::DeleteService', @_);
46 return $self->caller->do_call($self, $call_object);
47 }
48 sub DeregisterInstance {
49 my $self = shift;
50 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::DeregisterInstance', @_);
51 return $self->caller->do_call($self, $call_object);
52 }
53 sub DiscoverInstances {
54 my $self = shift;
55 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::DiscoverInstances', @_);
56 return $self->caller->do_call($self, $call_object);
57 }
58 sub GetInstance {
59 my $self = shift;
60 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::GetInstance', @_);
61 return $self->caller->do_call($self, $call_object);
62 }
63 sub GetInstancesHealthStatus {
64 my $self = shift;
65 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::GetInstancesHealthStatus', @_);
66 return $self->caller->do_call($self, $call_object);
67 }
68 sub GetNamespace {
69 my $self = shift;
70 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::GetNamespace', @_);
71 return $self->caller->do_call($self, $call_object);
72 }
73 sub GetOperation {
74 my $self = shift;
75 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::GetOperation', @_);
76 return $self->caller->do_call($self, $call_object);
77 }
78 sub GetService {
79 my $self = shift;
80 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::GetService', @_);
81 return $self->caller->do_call($self, $call_object);
82 }
83 sub ListInstances {
84 my $self = shift;
85 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::ListInstances', @_);
86 return $self->caller->do_call($self, $call_object);
87 }
88 sub ListNamespaces {
89 my $self = shift;
90 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::ListNamespaces', @_);
91 return $self->caller->do_call($self, $call_object);
92 }
93 sub ListOperations {
94 my $self = shift;
95 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::ListOperations', @_);
96 return $self->caller->do_call($self, $call_object);
97 }
98 sub ListServices {
99 my $self = shift;
100 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::ListServices', @_);
101 return $self->caller->do_call($self, $call_object);
102 }
103 sub ListTagsForResource {
104 my $self = shift;
105 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::ListTagsForResource', @_);
106 return $self->caller->do_call($self, $call_object);
107 }
108 sub RegisterInstance {
109 my $self = shift;
110 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::RegisterInstance', @_);
111 return $self->caller->do_call($self, $call_object);
112 }
113 sub TagResource {
114 my $self = shift;
115 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::TagResource', @_);
116 return $self->caller->do_call($self, $call_object);
117 }
118 sub UntagResource {
119 my $self = shift;
120 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::UntagResource', @_);
121 return $self->caller->do_call($self, $call_object);
122 }
123 sub UpdateHttpNamespace {
124 my $self = shift;
125 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::UpdateHttpNamespace', @_);
126 return $self->caller->do_call($self, $call_object);
127 }
128 sub UpdateInstanceCustomHealthStatus {
129 my $self = shift;
130 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::UpdateInstanceCustomHealthStatus', @_);
131 return $self->caller->do_call($self, $call_object);
132 }
133 sub UpdatePrivateDnsNamespace {
134 my $self = shift;
135 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::UpdatePrivateDnsNamespace', @_);
136 return $self->caller->do_call($self, $call_object);
137 }
138 sub UpdatePublicDnsNamespace {
139 my $self = shift;
140 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::UpdatePublicDnsNamespace', @_);
141 return $self->caller->do_call($self, $call_object);
142 }
143 sub UpdateService {
144 my $self = shift;
145 my $call_object = $self->new_with_coercions('Paws::ServiceDiscovery::UpdateService', @_);
146 return $self->caller->do_call($self, $call_object);
147 }
148
149 sub ListAllInstances {
150 my $self = shift;
151  
152 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
153 my $result = $self->ListInstances(@_);
154 my $next_result = $result;
155  
156 if (not defined $callback) {
157 while ($next_result->NextToken) {
158 $next_result = $self->ListInstances(@_, NextToken => $next_result->NextToken);
159 push @{ $result->Instances }, @{ $next_result->Instances };
160 }
161 return $result;
162 } else {
163 while ($result->NextToken) {
164 $callback->($_ => 'Instances') foreach (@{ $result->Instances });
165 $result = $self->ListInstances(@_, NextToken => $result->NextToken);
166 }
167 $callback->($_ => 'Instances') foreach (@{ $result->Instances });
168 }
169  
170 return undef
171 }
172 sub ListAllNamespaces {
173 my $self = shift;
174  
175 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
176 my $result = $self->ListNamespaces(@_);
177 my $next_result = $result;
178  
179 if (not defined $callback) {
180 while ($next_result->NextToken) {
181 $next_result = $self->ListNamespaces(@_, NextToken => $next_result->NextToken);
182 push @{ $result->Namespaces }, @{ $next_result->Namespaces };
183 }
184 return $result;
185 } else {
186 while ($result->NextToken) {
187 $callback->($_ => 'Namespaces') foreach (@{ $result->Namespaces });
188 $result = $self->ListNamespaces(@_, NextToken => $result->NextToken);
189 }
190 $callback->($_ => 'Namespaces') foreach (@{ $result->Namespaces });
191 }
192  
193 return undef
194 }
195 sub ListAllOperations {
196 my $self = shift;
197  
198 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
199 my $result = $self->ListOperations(@_);
200 my $next_result = $result;
201  
202 if (not defined $callback) {
203 while ($next_result->NextToken) {
204 $next_result = $self->ListOperations(@_, NextToken => $next_result->NextToken);
205 push @{ $result->Operations }, @{ $next_result->Operations };
206 }
207 return $result;
208 } else {
209 while ($result->NextToken) {
210 $callback->($_ => 'Operations') foreach (@{ $result->Operations });
211 $result = $self->ListOperations(@_, NextToken => $result->NextToken);
212 }
213 $callback->($_ => 'Operations') foreach (@{ $result->Operations });
214 }
215  
216 return undef
217 }
218 sub ListAllServices {
219 my $self = shift;
220  
221 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
222 my $result = $self->ListServices(@_);
223 my $next_result = $result;
224  
225 if (not defined $callback) {
226 while ($next_result->NextToken) {
227 $next_result = $self->ListServices(@_, NextToken => $next_result->NextToken);
228 push @{ $result->Services }, @{ $next_result->Services };
229 }
230 return $result;
231 } else {
232 while ($result->NextToken) {
233 $callback->($_ => 'Services') foreach (@{ $result->Services });
234 $result = $self->ListServices(@_, NextToken => $result->NextToken);
235 }
236 $callback->($_ => 'Services') foreach (@{ $result->Services });
237 }
238  
239 return undef
240 }
241  
242  
243 sub operations { qw/CreateHttpNamespace CreatePrivateDnsNamespace CreatePublicDnsNamespace CreateService DeleteNamespace DeleteService DeregisterInstance DiscoverInstances GetInstance GetInstancesHealthStatus GetNamespace GetOperation GetService ListInstances ListNamespaces ListOperations ListServices ListTagsForResource RegisterInstance TagResource UntagResource UpdateHttpNamespace UpdateInstanceCustomHealthStatus UpdatePrivateDnsNamespace UpdatePublicDnsNamespace UpdateService / }
244  
245 1;
246  
247 ### main pod documentation begin ###
248  
249 =head1 NAME
250  
251 Paws::ServiceDiscovery - Perl Interface to AWS AWS Cloud Map
252  
253 =head1 SYNOPSIS
254  
255 use Paws;
256  
257 my $obj = Paws->service('ServiceDiscovery');
258 my $res = $obj->Method(
259 Arg1 => $val1,
260 Arg2 => [ 'V1', 'V2' ],
261 # if Arg3 is an object, the HashRef will be used as arguments to the constructor
262 # of the arguments type
263 Arg3 => { Att1 => 'Val1' },
264 # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
265 # the constructor of the arguments type
266 Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
267 );
268  
269 =head1 DESCRIPTION
270  
271 Cloud Map
272  
273 With Cloud Map, you can configure public DNS, private DNS, or HTTP
274 namespaces that your microservice applications run in. When an instance
275 becomes available, you can call the Cloud Map API to register the
276 instance with Cloud Map. For public or private DNS namespaces, Cloud
277 Map automatically creates DNS records and an optional health check.
278 Clients that submit public or private DNS queries, or HTTP requests,
279 for the service receive an answer that contains up to eight healthy
280 records.
281  
282 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14>
283  
284  
285 =head1 METHODS
286  
287 =head2 CreateHttpNamespace
288  
289 =over
290  
291 =item Name => Str
292  
293 =item [CreatorRequestId => Str]
294  
295 =item [Description => Str]
296  
297 =item [Tags => ArrayRef[L<Paws::ServiceDiscovery::Tag>]]
298  
299  
300 =back
301  
302 Each argument is described in detail in: L<Paws::ServiceDiscovery::CreateHttpNamespace>
303  
304 Returns: a L<Paws::ServiceDiscovery::CreateHttpNamespaceResponse> instance
305  
306 Creates an HTTP namespace. Service instances registered using an HTTP
307 namespace can be discovered using a C<DiscoverInstances> request but
308 can't be discovered using DNS.
309  
310 For the current quota on the number of namespaces that you can create
311 using the same account, see Cloud Map quotas
312 (https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html)
313 in the I<Cloud Map Developer Guide>.
314  
315  
316 =head2 CreatePrivateDnsNamespace
317  
318 =over
319  
320 =item Name => Str
321  
322 =item Vpc => Str
323  
324 =item [CreatorRequestId => Str]
325  
326 =item [Description => Str]
327  
328 =item [Properties => L<Paws::ServiceDiscovery::PrivateDnsNamespaceProperties>]
329  
330 =item [Tags => ArrayRef[L<Paws::ServiceDiscovery::Tag>]]
331  
332  
333 =back
334  
335 Each argument is described in detail in: L<Paws::ServiceDiscovery::CreatePrivateDnsNamespace>
336  
337 Returns: a L<Paws::ServiceDiscovery::CreatePrivateDnsNamespaceResponse> instance
338  
339 Creates a private namespace based on DNS, which is visible only inside
340 a specified Amazon VPC. The namespace defines your service naming
341 scheme. For example, if you name your namespace C<example.com> and name
342 your service C<backend>, the resulting DNS name for the service is
343 C<backend.example.com>. Service instances that are registered using a
344 private DNS namespace can be discovered using either a
345 C<DiscoverInstances> request or using DNS. For the current quota on the
346 number of namespaces that you can create using the same account, see
347 Cloud Map quotas
348 (https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html)
349 in the I<Cloud Map Developer Guide>.
350  
351  
352 =head2 CreatePublicDnsNamespace
353  
354 =over
355  
356 =item Name => Str
357  
358 =item [CreatorRequestId => Str]
359  
360 =item [Description => Str]
361  
362 =item [Properties => L<Paws::ServiceDiscovery::PublicDnsNamespaceProperties>]
363  
364 =item [Tags => ArrayRef[L<Paws::ServiceDiscovery::Tag>]]
365  
366  
367 =back
368  
369 Each argument is described in detail in: L<Paws::ServiceDiscovery::CreatePublicDnsNamespace>
370  
371 Returns: a L<Paws::ServiceDiscovery::CreatePublicDnsNamespaceResponse> instance
372  
373 Creates a public namespace based on DNS, which is visible on the
374 internet. The namespace defines your service naming scheme. For
375 example, if you name your namespace C<example.com> and name your
376 service C<backend>, the resulting DNS name for the service is
377 C<backend.example.com>. You can discover instances that were registered
378 with a public DNS namespace by using either a C<DiscoverInstances>
379 request or using DNS. For the current quota on the number of namespaces
380 that you can create using the same account, see Cloud Map quotas
381 (https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html)
382 in the I<Cloud Map Developer Guide>.
383  
384  
385 =head2 CreateService
386  
387 =over
388  
389 =item Name => Str
390  
391 =item [CreatorRequestId => Str]
392  
393 =item [Description => Str]
394  
395 =item [DnsConfig => L<Paws::ServiceDiscovery::DnsConfig>]
396  
397 =item [HealthCheckConfig => L<Paws::ServiceDiscovery::HealthCheckConfig>]
398  
399 =item [HealthCheckCustomConfig => L<Paws::ServiceDiscovery::HealthCheckCustomConfig>]
400  
401 =item [NamespaceId => Str]
402  
403 =item [Tags => ArrayRef[L<Paws::ServiceDiscovery::Tag>]]
404  
405 =item [Type => Str]
406  
407  
408 =back
409  
410 Each argument is described in detail in: L<Paws::ServiceDiscovery::CreateService>
411  
412 Returns: a L<Paws::ServiceDiscovery::CreateServiceResponse> instance
413  
414 Creates a service. This action defines the configuration for the
415 following entities:
416  
417 =over
418  
419 =item *
420  
421 For public and private DNS namespaces, one of the following
422 combinations of DNS records in Amazon Route 53:
423  
424 =over
425  
426 =item *
427  
428 C<A>
429  
430 =item *
431  
432 C<AAAA>
433  
434 =item *
435  
436 C<A> and C<AAAA>
437  
438 =item *
439  
440 C<SRV>
441  
442 =item *
443  
444 C<CNAME>
445  
446 =back
447  
448 =item *
449  
450 Optionally, a health check
451  
452 =back
453  
454 After you create the service, you can submit a RegisterInstance
455 (https://docs.aws.amazon.com/cloud-map/latest/api/API_RegisterInstance.html)
456 request, and Cloud Map uses the values in the configuration to create
457 the specified entities.
458  
459 For the current quota on the number of instances that you can register
460 using the same namespace and using the same service, see Cloud Map
461 quotas
462 (https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html)
463 in the I<Cloud Map Developer Guide>.
464  
465  
466 =head2 DeleteNamespace
467  
468 =over
469  
470 =item Id => Str
471  
472  
473 =back
474  
475 Each argument is described in detail in: L<Paws::ServiceDiscovery::DeleteNamespace>
476  
477 Returns: a L<Paws::ServiceDiscovery::DeleteNamespaceResponse> instance
478  
479 Deletes a namespace from the current account. If the namespace still
480 contains one or more services, the request fails.
481  
482  
483 =head2 DeleteService
484  
485 =over
486  
487 =item Id => Str
488  
489  
490 =back
491  
492 Each argument is described in detail in: L<Paws::ServiceDiscovery::DeleteService>
493  
494 Returns: a L<Paws::ServiceDiscovery::DeleteServiceResponse> instance
495  
496 Deletes a specified service. If the service still contains one or more
497 registered instances, the request fails.
498  
499  
500 =head2 DeregisterInstance
501  
502 =over
503  
504 =item InstanceId => Str
505  
506 =item ServiceId => Str
507  
508  
509 =back
510  
511 Each argument is described in detail in: L<Paws::ServiceDiscovery::DeregisterInstance>
512  
513 Returns: a L<Paws::ServiceDiscovery::DeregisterInstanceResponse> instance
514  
515 Deletes the Amazon Route 53 DNS records and health check, if any, that
516 Cloud Map created for the specified instance.
517  
518  
519 =head2 DiscoverInstances
520  
521 =over
522  
523 =item NamespaceName => Str
524  
525 =item ServiceName => Str
526  
527 =item [HealthStatus => Str]
528  
529 =item [MaxResults => Int]
530  
531 =item [OptionalParameters => L<Paws::ServiceDiscovery::Attributes>]
532  
533 =item [QueryParameters => L<Paws::ServiceDiscovery::Attributes>]
534  
535  
536 =back
537  
538 Each argument is described in detail in: L<Paws::ServiceDiscovery::DiscoverInstances>
539  
540 Returns: a L<Paws::ServiceDiscovery::DiscoverInstancesResponse> instance
541  
542 Discovers registered instances for a specified namespace and service.
543 You can use C<DiscoverInstances> to discover instances for any type of
544 namespace. For public and private DNS namespaces, you can also use DNS
545 queries to discover instances.
546  
547  
548 =head2 GetInstance
549  
550 =over
551  
552 =item InstanceId => Str
553  
554 =item ServiceId => Str
555  
556  
557 =back
558  
559 Each argument is described in detail in: L<Paws::ServiceDiscovery::GetInstance>
560  
561 Returns: a L<Paws::ServiceDiscovery::GetInstanceResponse> instance
562  
563 Gets information about a specified instance.
564  
565  
566 =head2 GetInstancesHealthStatus
567  
568 =over
569  
570 =item ServiceId => Str
571  
572 =item [Instances => ArrayRef[Str|Undef]]
573  
574 =item [MaxResults => Int]
575  
576 =item [NextToken => Str]
577  
578  
579 =back
580  
581 Each argument is described in detail in: L<Paws::ServiceDiscovery::GetInstancesHealthStatus>
582  
583 Returns: a L<Paws::ServiceDiscovery::GetInstancesHealthStatusResponse> instance
584  
585 Gets the current health status (C<Healthy>, C<Unhealthy>, or
586 C<Unknown>) of one or more instances that are associated with a
587 specified service.
588  
589 There's a brief delay between when you register an instance and when
590 the health status for the instance is available.
591  
592  
593 =head2 GetNamespace
594  
595 =over
596  
597 =item Id => Str
598  
599  
600 =back
601  
602 Each argument is described in detail in: L<Paws::ServiceDiscovery::GetNamespace>
603  
604 Returns: a L<Paws::ServiceDiscovery::GetNamespaceResponse> instance
605  
606 Gets information about a namespace.
607  
608  
609 =head2 GetOperation
610  
611 =over
612  
613 =item OperationId => Str
614  
615  
616 =back
617  
618 Each argument is described in detail in: L<Paws::ServiceDiscovery::GetOperation>
619  
620 Returns: a L<Paws::ServiceDiscovery::GetOperationResponse> instance
621  
622 Gets information about any operation that returns an operation ID in
623 the response, such as a C<CreateService> request.
624  
625 To get a list of operations that match specified criteria, see
626 ListOperations
627 (https://docs.aws.amazon.com/cloud-map/latest/api/API_ListOperations.html).
628  
629  
630 =head2 GetService
631  
632 =over
633  
634 =item Id => Str
635  
636  
637 =back
638  
639 Each argument is described in detail in: L<Paws::ServiceDiscovery::GetService>
640  
641 Returns: a L<Paws::ServiceDiscovery::GetServiceResponse> instance
642  
643 Gets the settings for a specified service.
644  
645  
646 =head2 ListInstances
647  
648 =over
649  
650 =item ServiceId => Str
651  
652 =item [MaxResults => Int]
653  
654 =item [NextToken => Str]
655  
656  
657 =back
658  
659 Each argument is described in detail in: L<Paws::ServiceDiscovery::ListInstances>
660  
661 Returns: a L<Paws::ServiceDiscovery::ListInstancesResponse> instance
662  
663 Lists summary information about the instances that you registered by
664 using a specified service.
665  
666  
667 =head2 ListNamespaces
668  
669 =over
670  
671 =item [Filters => ArrayRef[L<Paws::ServiceDiscovery::NamespaceFilter>]]
672  
673 =item [MaxResults => Int]
674  
675 =item [NextToken => Str]
676  
677  
678 =back
679  
680 Each argument is described in detail in: L<Paws::ServiceDiscovery::ListNamespaces>
681  
682 Returns: a L<Paws::ServiceDiscovery::ListNamespacesResponse> instance
683  
684 Lists summary information about the namespaces that were created by the
685 current account.
686  
687  
688 =head2 ListOperations
689  
690 =over
691  
692 =item [Filters => ArrayRef[L<Paws::ServiceDiscovery::OperationFilter>]]
693  
694 =item [MaxResults => Int]
695  
696 =item [NextToken => Str]
697  
698  
699 =back
700  
701 Each argument is described in detail in: L<Paws::ServiceDiscovery::ListOperations>
702  
703 Returns: a L<Paws::ServiceDiscovery::ListOperationsResponse> instance
704  
705 Lists operations that match the criteria that you specify.
706  
707  
708 =head2 ListServices
709  
710 =over
711  
712 =item [Filters => ArrayRef[L<Paws::ServiceDiscovery::ServiceFilter>]]
713  
714 =item [MaxResults => Int]
715  
716 =item [NextToken => Str]
717  
718  
719 =back
720  
721 Each argument is described in detail in: L<Paws::ServiceDiscovery::ListServices>
722  
723 Returns: a L<Paws::ServiceDiscovery::ListServicesResponse> instance
724  
725 Lists summary information for all the services that are associated with
726 one or more specified namespaces.
727  
728  
729 =head2 ListTagsForResource
730  
731 =over
732  
733 =item ResourceARN => Str
734  
735  
736 =back
737  
738 Each argument is described in detail in: L<Paws::ServiceDiscovery::ListTagsForResource>
739  
740 Returns: a L<Paws::ServiceDiscovery::ListTagsForResourceResponse> instance
741  
742 Lists tags for the specified resource.
743  
744  
745 =head2 RegisterInstance
746  
747 =over
748  
749 =item Attributes => L<Paws::ServiceDiscovery::Attributes>
750  
751 =item InstanceId => Str
752  
753 =item ServiceId => Str
754  
755 =item [CreatorRequestId => Str]
756  
757  
758 =back
759  
760 Each argument is described in detail in: L<Paws::ServiceDiscovery::RegisterInstance>
761  
762 Returns: a L<Paws::ServiceDiscovery::RegisterInstanceResponse> instance
763  
764 Creates or updates one or more records and, optionally, creates a
765 health check based on the settings in a specified service. When you
766 submit a C<RegisterInstance> request, the following occurs:
767  
768 =over
769  
770 =item *
771  
772 For each DNS record that you define in the service that's specified by
773 C<ServiceId>, a record is created or updated in the hosted zone that's
774 associated with the corresponding namespace.
775  
776 =item *
777  
778 If the service includes C<HealthCheckConfig>, a health check is created
779 based on the settings in the health check configuration.
780  
781 =item *
782  
783 The health check, if any, is associated with each of the new or updated
784 records.
785  
786 =back
787  
788 One C<RegisterInstance> request must complete before you can submit
789 another request and specify the same service ID and instance ID.
790  
791 For more information, see CreateService
792 (https://docs.aws.amazon.com/cloud-map/latest/api/API_CreateService.html).
793  
794 When Cloud Map receives a DNS query for the specified DNS name, it
795 returns the applicable value:
796  
797 =over
798  
799 =item *
800  
801 B<If the health check is healthy>: returns all the records
802  
803 =item *
804  
805 B<If the health check is unhealthy>: returns the applicable value for
806 the last healthy instance
807  
808 =item *
809  
810 B<If you didn't specify a health check configuration>: returns all the
811 records
812  
813 =back
814  
815 For the current quota on the number of instances that you can register
816 using the same namespace and using the same service, see Cloud Map
817 quotas
818 (https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html)
819 in the I<Cloud Map Developer Guide>.
820  
821  
822 =head2 TagResource
823  
824 =over
825  
826 =item ResourceARN => Str
827  
828 =item Tags => ArrayRef[L<Paws::ServiceDiscovery::Tag>]
829  
830  
831 =back
832  
833 Each argument is described in detail in: L<Paws::ServiceDiscovery::TagResource>
834  
835 Returns: a L<Paws::ServiceDiscovery::TagResourceResponse> instance
836  
837 Adds one or more tags to the specified resource.
838  
839  
840 =head2 UntagResource
841  
842 =over
843  
844 =item ResourceARN => Str
845  
846 =item TagKeys => ArrayRef[Str|Undef]
847  
848  
849 =back
850  
851 Each argument is described in detail in: L<Paws::ServiceDiscovery::UntagResource>
852  
853 Returns: a L<Paws::ServiceDiscovery::UntagResourceResponse> instance
854  
855 Removes one or more tags from the specified resource.
856  
857  
858 =head2 UpdateHttpNamespace
859  
860 =over
861  
862 =item Id => Str
863  
864 =item Namespace => L<Paws::ServiceDiscovery::HttpNamespaceChange>
865  
866 =item [UpdaterRequestId => Str]
867  
868  
869 =back
870  
871 Each argument is described in detail in: L<Paws::ServiceDiscovery::UpdateHttpNamespace>
872  
873 Returns: a L<Paws::ServiceDiscovery::UpdateHttpNamespaceResponse> instance
874  
875 Updates an HTTP namespace.
876  
877  
878 =head2 UpdateInstanceCustomHealthStatus
879  
880 =over
881  
882 =item InstanceId => Str
883  
884 =item ServiceId => Str
885  
886 =item Status => Str
887  
888  
889 =back
890  
891 Each argument is described in detail in: L<Paws::ServiceDiscovery::UpdateInstanceCustomHealthStatus>
892  
893 Returns: nothing
894  
895 Submits a request to change the health status of a custom health check
896 to healthy or unhealthy.
897  
898 You can use C<UpdateInstanceCustomHealthStatus> to change the status
899 only for custom health checks, which you define using
900 C<HealthCheckCustomConfig> when you create a service. You can't use it
901 to change the status for Route 53 health checks, which you define using
902 C<HealthCheckConfig>.
903  
904 For more information, see HealthCheckCustomConfig
905 (https://docs.aws.amazon.com/cloud-map/latest/api/API_HealthCheckCustomConfig.html).
906  
907  
908 =head2 UpdatePrivateDnsNamespace
909  
910 =over
911  
912 =item Id => Str
913  
914 =item Namespace => L<Paws::ServiceDiscovery::PrivateDnsNamespaceChange>
915  
916 =item [UpdaterRequestId => Str]
917  
918  
919 =back
920  
921 Each argument is described in detail in: L<Paws::ServiceDiscovery::UpdatePrivateDnsNamespace>
922  
923 Returns: a L<Paws::ServiceDiscovery::UpdatePrivateDnsNamespaceResponse> instance
924  
925 Updates a private DNS namespace.
926  
927  
928 =head2 UpdatePublicDnsNamespace
929  
930 =over
931  
932 =item Id => Str
933  
934 =item Namespace => L<Paws::ServiceDiscovery::PublicDnsNamespaceChange>
935  
936 =item [UpdaterRequestId => Str]
937  
938  
939 =back
940  
941 Each argument is described in detail in: L<Paws::ServiceDiscovery::UpdatePublicDnsNamespace>
942  
943 Returns: a L<Paws::ServiceDiscovery::UpdatePublicDnsNamespaceResponse> instance
944  
945 Updates a public DNS namespace.
946  
947  
948 =head2 UpdateService
949  
950 =over
951  
952 =item Id => Str
953  
954 =item Service => L<Paws::ServiceDiscovery::ServiceChange>
955  
956  
957 =back
958  
959 Each argument is described in detail in: L<Paws::ServiceDiscovery::UpdateService>
960  
961 Returns: a L<Paws::ServiceDiscovery::UpdateServiceResponse> instance
962  
963 Submits a request to perform the following operations:
964  
965 =over
966  
967 =item *
968  
969 Update the TTL setting for existing C<DnsRecords> configurations
970  
971 =item *
972  
973 Add, update, or delete C<HealthCheckConfig> for a specified service
974  
975 You can't add, update, or delete a C<HealthCheckCustomConfig>
976 configuration.
977  
978 =back
979  
980 For public and private DNS namespaces, note the following:
981  
982 =over
983  
984 =item *
985  
986 If you omit any existing C<DnsRecords> or C<HealthCheckConfig>
987 configurations from an C<UpdateService> request, the configurations are
988 deleted from the service.
989  
990 =item *
991  
992 If you omit an existing C<HealthCheckCustomConfig> configuration from
993 an C<UpdateService> request, the configuration isn't deleted from the
994 service.
995  
996 =back
997  
998 When you update settings for a service, Cloud Map also updates the
999 corresponding settings in all the records and health checks that were
1000 created by using the specified service.
1001  
1002  
1003  
1004  
1005 =head1 PAGINATORS
1006  
1007 Paginator methods are helpers that repetively call methods that return partial results
1008  
1009 =head2 ListAllInstances(sub { },ServiceId => Str, [MaxResults => Int, NextToken => Str])
1010  
1011 =head2 ListAllInstances(ServiceId => Str, [MaxResults => Int, NextToken => Str])
1012  
1013  
1014 If passed a sub as first parameter, it will call the sub for each element found in :
1015  
1016 - Instances, passing the object as the first parameter, and the string 'Instances' as the second parameter
1017  
1018 If not, it will return a a L<Paws::ServiceDiscovery::ListInstancesResponse> 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.
1019  
1020  
1021 =head2 ListAllNamespaces(sub { },[Filters => ArrayRef[L<Paws::ServiceDiscovery::NamespaceFilter>], MaxResults => Int, NextToken => Str])
1022  
1023 =head2 ListAllNamespaces([Filters => ArrayRef[L<Paws::ServiceDiscovery::NamespaceFilter>], MaxResults => Int, NextToken => Str])
1024  
1025  
1026 If passed a sub as first parameter, it will call the sub for each element found in :
1027  
1028 - Namespaces, passing the object as the first parameter, and the string 'Namespaces' as the second parameter
1029  
1030 If not, it will return a a L<Paws::ServiceDiscovery::ListNamespacesResponse> 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.
1031  
1032  
1033 =head2 ListAllOperations(sub { },[Filters => ArrayRef[L<Paws::ServiceDiscovery::OperationFilter>], MaxResults => Int, NextToken => Str])
1034  
1035 =head2 ListAllOperations([Filters => ArrayRef[L<Paws::ServiceDiscovery::OperationFilter>], MaxResults => Int, NextToken => Str])
1036  
1037  
1038 If passed a sub as first parameter, it will call the sub for each element found in :
1039  
1040 - Operations, passing the object as the first parameter, and the string 'Operations' as the second parameter
1041  
1042 If not, it will return a a L<Paws::ServiceDiscovery::ListOperationsResponse> 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.
1043  
1044  
1045 =head2 ListAllServices(sub { },[Filters => ArrayRef[L<Paws::ServiceDiscovery::ServiceFilter>], MaxResults => Int, NextToken => Str])
1046  
1047 =head2 ListAllServices([Filters => ArrayRef[L<Paws::ServiceDiscovery::ServiceFilter>], MaxResults => Int, NextToken => Str])
1048  
1049  
1050 If passed a sub as first parameter, it will call the sub for each element found in :
1051  
1052 - Services, passing the object as the first parameter, and the string 'Services' as the second parameter
1053  
1054 If not, it will return a a L<Paws::ServiceDiscovery::ListServicesResponse> 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.
1055  
1056  
1057  
1058  
1059  
1060 =head1 SEE ALSO
1061  
1062 This service class forms part of L<Paws>
1063  
1064 =head1 BUGS and CONTRIBUTIONS
1065  
1066 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
1067  
1068 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
1069  
1070 =cut
1071