internal virtual DescribeStatementResponse DescribeStatement(DescribeStatementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStatementResponseUnmarshaller.Instance; return(Invoke <DescribeStatementResponse>(request, options)); }
/// <summary> /// Describes the details about a specific instance when a query was run by the Amazon /// Redshift Data API. The information includes when the query started, when it finished, /// the query status, the number of rows returned, and the SQL statement. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeStatement service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeStatement service method, as returned by RedshiftDataAPIService.</returns> /// <exception cref="Amazon.RedshiftDataAPIService.Model.InternalServerException"> /// The Amazon Redshift Data API operation failed due to invalid input. /// </exception> /// <exception cref="Amazon.RedshiftDataAPIService.Model.ResourceNotFoundException"> /// The Amazon Redshift Data API operation failed due to a missing resource. /// </exception> /// <exception cref="Amazon.RedshiftDataAPIService.Model.ValidationException"> /// The Amazon Redshift Data API operation failed due to invalid input. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/DescribeStatement">REST API Reference for DescribeStatement Operation</seealso> public virtual Task <DescribeStatementResponse> DescribeStatementAsync(DescribeStatementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStatementResponseUnmarshaller.Instance; return(InvokeAsync <DescribeStatementResponse>(request, options, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeStatement operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStatement operation on AmazonRedshiftDataAPIServiceClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeStatement /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/DescribeStatement">REST API Reference for DescribeStatement Operation</seealso> public virtual IAsyncResult BeginDescribeStatement(DescribeStatementRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStatementRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStatementResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }