public void ServiceDiscoveryGetInstance()
        {
            #region getinstance-example-1590115065598

            var response = client.GetInstance(new GetInstanceRequest
            {
                InstanceId = "i-abcd1234",
                ServiceId  = "srv-e4anhexample0004"
            });

            Instance instance = response.Instance;

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