public void ServiceDiscoveryGetService()
        {
            #region getservice-example-1590117234294

            var response = client.GetService(new GetServiceRequest
            {
                Id = "srv-e4anhexample0004"
            });

            Service service = response.Service;

            #endregion
        }
 private Amazon.ServiceDiscovery.Model.GetServiceResponse CallAWSServiceOperation(IAmazonServiceDiscovery client, Amazon.ServiceDiscovery.Model.GetServiceRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Cloud Map", "GetService");
     try
     {
         #if DESKTOP
         return(client.GetService(request));
         #elif CORECLR
         return(client.GetServiceAsync(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;
     }
 }