Amazon.PowerShell.Cmdlets.TSQ.UpdateTSQScheduledQueryCmdlet.CallAWSServiceOperation C# (CSharp) Method

CallAWSServiceOperation() private method

private CallAWSServiceOperation ( IAmazonTimestreamQuery client, Amazon.TimestreamQuery.Model.UpdateScheduledQueryRequest request ) : Amazon.TimestreamQuery.Model.UpdateScheduledQueryResponse
client IAmazonTimestreamQuery
request Amazon.TimestreamQuery.Model.UpdateScheduledQueryRequest
return Amazon.TimestreamQuery.Model.UpdateScheduledQueryResponse
        private Amazon.TimestreamQuery.Model.UpdateScheduledQueryResponse CallAWSServiceOperation(IAmazonTimestreamQuery client, Amazon.TimestreamQuery.Model.UpdateScheduledQueryRequest request)
        {
            Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Timestream Query", "UpdateScheduledQuery");
            try
            {
                #if DESKTOP
                return client.UpdateScheduledQuery(request);
                #elif CORECLR
                return client.UpdateScheduledQueryAsync(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;
            }
        }