![]() |
![]()
| ![]() |
![]()
NAMEPaws::ServiceDiscovery - Perl Interface to AWS AWS Cloud Map SYNOPSISuse Paws; my $obj = Paws->service('ServiceDiscovery'); my $res = $obj->Method( Arg1 => $val1, Arg2 => [ 'V1', 'V2' ], # if Arg3 is an object, the HashRef will be used as arguments to the constructor # of the arguments type Arg3 => { Att1 => 'Val1' }, # if Arg4 is an array of objects, the HashRefs will be passed as arguments to # the constructor of the arguments type Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], ); DESCRIPTIONCloud Map With Cloud Map, you can configure public DNS, private DNS, or HTTP namespaces that your microservice applications run in. When an instance becomes available, you can call the Cloud Map API to register the instance with Cloud Map. For public or private DNS namespaces, Cloud Map automatically creates DNS records and an optional health check. Clients that submit public or private DNS queries, or HTTP requests, for the service receive an answer that contains up to eight healthy records. For the AWS API documentation, see <https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14> METHODSCreateHttpNamespace
Each argument is described in detail in: Paws::ServiceDiscovery::CreateHttpNamespace Returns: a Paws::ServiceDiscovery::CreateHttpNamespaceResponse instance Creates an HTTP namespace. Service instances registered using an HTTP namespace can be discovered using a "DiscoverInstances" request but can't be discovered using DNS. For the current quota on the number of namespaces that you can create using the same account, see Cloud Map quotas (https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html) in the Cloud Map Developer Guide. CreatePrivateDnsNamespace
Each argument is described in detail in: Paws::ServiceDiscovery::CreatePrivateDnsNamespace Returns: a Paws::ServiceDiscovery::CreatePrivateDnsNamespaceResponse instance Creates a private namespace based on DNS, which is visible only inside a specified Amazon VPC. The namespace defines your service naming scheme. For example, if you name your namespace "example.com" and name your service "backend", the resulting DNS name for the service is "backend.example.com". Service instances that are registered using a private DNS namespace can be discovered using either a "DiscoverInstances" request or using DNS. For the current quota on the number of namespaces that you can create using the same account, see Cloud Map quotas (https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html) in the Cloud Map Developer Guide. CreatePublicDnsNamespace
Each argument is described in detail in: Paws::ServiceDiscovery::CreatePublicDnsNamespace Returns: a Paws::ServiceDiscovery::CreatePublicDnsNamespaceResponse instance Creates a public namespace based on DNS, which is visible on the internet. The namespace defines your service naming scheme. For example, if you name your namespace "example.com" and name your service "backend", the resulting DNS name for the service is "backend.example.com". You can discover instances that were registered with a public DNS namespace by using either a "DiscoverInstances" request or using DNS. For the current quota on the number of namespaces that you can create using the same account, see Cloud Map quotas (https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html) in the Cloud Map Developer Guide. CreateService
Each argument is described in detail in: Paws::ServiceDiscovery::CreateService Returns: a Paws::ServiceDiscovery::CreateServiceResponse instance Creates a service. This action defines the configuration for the following entities:
After you create the service, you can submit a RegisterInstance (https://docs.aws.amazon.com/cloud-map/latest/api/API_RegisterInstance.html) request, and Cloud Map uses the values in the configuration to create the specified entities. For the current quota on the number of instances that you can register using the same namespace and using the same service, see Cloud Map quotas (https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html) in the Cloud Map Developer Guide. DeleteNamespaceEach argument is described in detail in: Paws::ServiceDiscovery::DeleteNamespace Returns: a Paws::ServiceDiscovery::DeleteNamespaceResponse instance Deletes a namespace from the current account. If the namespace still contains one or more services, the request fails. DeleteServiceEach argument is described in detail in: Paws::ServiceDiscovery::DeleteService Returns: a Paws::ServiceDiscovery::DeleteServiceResponse instance Deletes a specified service. If the service still contains one or more registered instances, the request fails. DeregisterInstanceEach argument is described in detail in: Paws::ServiceDiscovery::DeregisterInstance Returns: a Paws::ServiceDiscovery::DeregisterInstanceResponse instance Deletes the Amazon Route 53 DNS records and health check, if any, that Cloud Map created for the specified instance. DiscoverInstances
Each argument is described in detail in: Paws::ServiceDiscovery::DiscoverInstances Returns: a Paws::ServiceDiscovery::DiscoverInstancesResponse instance Discovers registered instances for a specified namespace and service. You can use "DiscoverInstances" to discover instances for any type of namespace. For public and private DNS namespaces, you can also use DNS queries to discover instances. GetInstanceEach argument is described in detail in: Paws::ServiceDiscovery::GetInstance Returns: a Paws::ServiceDiscovery::GetInstanceResponse instance Gets information about a specified instance. GetInstancesHealthStatus
Each argument is described in detail in: Paws::ServiceDiscovery::GetInstancesHealthStatus Returns: a Paws::ServiceDiscovery::GetInstancesHealthStatusResponse instance Gets the current health status ("Healthy", "Unhealthy", or "Unknown") of one or more instances that are associated with a specified service. There's a brief delay between when you register an instance and when the health status for the instance is available. GetNamespaceEach argument is described in detail in: Paws::ServiceDiscovery::GetNamespace Returns: a Paws::ServiceDiscovery::GetNamespaceResponse instance Gets information about a namespace. GetOperationEach argument is described in detail in: Paws::ServiceDiscovery::GetOperation Returns: a Paws::ServiceDiscovery::GetOperationResponse instance Gets information about any operation that returns an operation ID in the response, such as a "CreateService" request. To get a list of operations that match specified criteria, see ListOperations (https://docs.aws.amazon.com/cloud-map/latest/api/API_ListOperations.html). GetServiceEach argument is described in detail in: Paws::ServiceDiscovery::GetService Returns: a Paws::ServiceDiscovery::GetServiceResponse instance Gets the settings for a specified service. ListInstances
Each argument is described in detail in: Paws::ServiceDiscovery::ListInstances Returns: a Paws::ServiceDiscovery::ListInstancesResponse instance Lists summary information about the instances that you registered by using a specified service. ListNamespaces
Each argument is described in detail in: Paws::ServiceDiscovery::ListNamespaces Returns: a Paws::ServiceDiscovery::ListNamespacesResponse instance Lists summary information about the namespaces that were created by the current account. ListOperations
Each argument is described in detail in: Paws::ServiceDiscovery::ListOperations Returns: a Paws::ServiceDiscovery::ListOperationsResponse instance Lists operations that match the criteria that you specify. ListServices
Each argument is described in detail in: Paws::ServiceDiscovery::ListServices Returns: a Paws::ServiceDiscovery::ListServicesResponse instance Lists summary information for all the services that are associated with one or more specified namespaces. ListTagsForResourceEach argument is described in detail in: Paws::ServiceDiscovery::ListTagsForResource Returns: a Paws::ServiceDiscovery::ListTagsForResourceResponse instance Lists tags for the specified resource. RegisterInstance
Each argument is described in detail in: Paws::ServiceDiscovery::RegisterInstance Returns: a Paws::ServiceDiscovery::RegisterInstanceResponse instance Creates or updates one or more records and, optionally, creates a health check based on the settings in a specified service. When you submit a "RegisterInstance" request, the following occurs:
One "RegisterInstance" request must complete before you can submit another request and specify the same service ID and instance ID. For more information, see CreateService (https://docs.aws.amazon.com/cloud-map/latest/api/API_CreateService.html). When Cloud Map receives a DNS query for the specified DNS name, it returns the applicable value:
For the current quota on the number of instances that you can register using the same namespace and using the same service, see Cloud Map quotas (https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html) in the Cloud Map Developer Guide. TagResourceEach argument is described in detail in: Paws::ServiceDiscovery::TagResource Returns: a Paws::ServiceDiscovery::TagResourceResponse instance Adds one or more tags to the specified resource. UntagResourceEach argument is described in detail in: Paws::ServiceDiscovery::UntagResource Returns: a Paws::ServiceDiscovery::UntagResourceResponse instance Removes one or more tags from the specified resource. UpdateHttpNamespace
Each argument is described in detail in: Paws::ServiceDiscovery::UpdateHttpNamespace Returns: a Paws::ServiceDiscovery::UpdateHttpNamespaceResponse instance Updates an HTTP namespace. UpdateInstanceCustomHealthStatusEach argument is described in detail in: Paws::ServiceDiscovery::UpdateInstanceCustomHealthStatus Returns: nothing Submits a request to change the health status of a custom health check to healthy or unhealthy. You can use "UpdateInstanceCustomHealthStatus" to change the status only for custom health checks, which you define using "HealthCheckCustomConfig" when you create a service. You can't use it to change the status for Route 53 health checks, which you define using "HealthCheckConfig". For more information, see HealthCheckCustomConfig (https://docs.aws.amazon.com/cloud-map/latest/api/API_HealthCheckCustomConfig.html). UpdatePrivateDnsNamespace
Each argument is described in detail in: Paws::ServiceDiscovery::UpdatePrivateDnsNamespace Returns: a Paws::ServiceDiscovery::UpdatePrivateDnsNamespaceResponse instance Updates a private DNS namespace. UpdatePublicDnsNamespace
Each argument is described in detail in: Paws::ServiceDiscovery::UpdatePublicDnsNamespace Returns: a Paws::ServiceDiscovery::UpdatePublicDnsNamespaceResponse instance Updates a public DNS namespace. UpdateServiceEach argument is described in detail in: Paws::ServiceDiscovery::UpdateService Returns: a Paws::ServiceDiscovery::UpdateServiceResponse instance Submits a request to perform the following operations:
For public and private DNS namespaces, note the following:
When you update settings for a service, Cloud Map also updates the corresponding settings in all the records and health checks that were created by using the specified service. PAGINATORSPaginator methods are helpers that repetively call methods that return partial results ListAllInstances(sub { },ServiceId => Str, [MaxResults => Int, NextToken => Str])ListAllInstances(ServiceId => Str, [MaxResults => Int, NextToken => Str])If passed a sub as first parameter, it will call the sub for each element found in : - Instances, passing the object as the first parameter, and the string 'Instances' as the second parameter If not, it will return a a Paws::ServiceDiscovery::ListInstancesResponse instance with all the "param"s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. ListAllNamespaces(sub { },[Filters => ArrayRef[Paws::ServiceDiscovery::NamespaceFilter], MaxResults => Int, NextToken => Str])ListAllNamespaces([Filters => ArrayRef[Paws::ServiceDiscovery::NamespaceFilter], MaxResults => Int, NextToken => Str])If passed a sub as first parameter, it will call the sub for each element found in : - Namespaces, passing the object as the first parameter, and the string 'Namespaces' as the second parameter If not, it will return a a Paws::ServiceDiscovery::ListNamespacesResponse instance with all the "param"s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. ListAllOperations(sub { },[Filters => ArrayRef[Paws::ServiceDiscovery::OperationFilter], MaxResults => Int, NextToken => Str])ListAllOperations([Filters => ArrayRef[Paws::ServiceDiscovery::OperationFilter], MaxResults => Int, NextToken => Str])If passed a sub as first parameter, it will call the sub for each element found in : - Operations, passing the object as the first parameter, and the string 'Operations' as the second parameter If not, it will return a a Paws::ServiceDiscovery::ListOperationsResponse instance with all the "param"s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. ListAllServices(sub { },[Filters => ArrayRef[Paws::ServiceDiscovery::ServiceFilter], MaxResults => Int, NextToken => Str])ListAllServices([Filters => ArrayRef[Paws::ServiceDiscovery::ServiceFilter], MaxResults => Int, NextToken => Str])If passed a sub as first parameter, it will call the sub for each element found in : - Services, passing the object as the first parameter, and the string 'Services' as the second parameter If not, it will return a a Paws::ServiceDiscovery::ListServicesResponse instance with all the "param"s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. SEE ALSOThis service class forms part of Paws BUGS and CONTRIBUTIONSThe source code is located here: <https://github.com/pplu/aws-sdk-perl> Please report bugs to: <https://github.com/pplu/aws-sdk-perl/issues>
|