public void ServiceDiscoveryDiscoverInstances()
        {
            #region example-discover-registered-instances-1587236343568

            var response = client.DiscoverInstances(new DiscoverInstancesRequest
            {
                HealthStatus  = "ALL",
                MaxResults    = 10,
                NamespaceName = "example.com",
                ServiceName   = "myservice"
            });

            List <HttpInstanceSummary> instances = response.Instances;

            #endregion
        }
 private Amazon.ServiceDiscovery.Model.DiscoverInstancesResponse CallAWSServiceOperation(IAmazonServiceDiscovery client, Amazon.ServiceDiscovery.Model.DiscoverInstancesRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Cloud Map", "DiscoverInstances");
     try
     {
         #if DESKTOP
         return(client.DiscoverInstances(request));
         #elif CORECLR
         return(client.DiscoverInstancesAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }