private Amazon.MQ.Model.DescribeBrokerInstanceOptionsResponse CallAWSServiceOperation(IAmazonMQ client, Amazon.MQ.Model.DescribeBrokerInstanceOptionsRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon MQ", "DescribeBrokerInstanceOptions"); try { #if DESKTOP return(client.DescribeBrokerInstanceOptions(request)); #elif CORECLR return(client.DescribeBrokerInstanceOptionsAsync(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; } }