internal virtual BatchGetNamedQueryResponse BatchGetNamedQuery(BatchGetNamedQueryRequest request) { var marshaller = BatchGetNamedQueryRequestMarshaller.Instance; var unmarshaller = BatchGetNamedQueryResponseUnmarshaller.Instance; return(Invoke <BatchGetNamedQueryRequest, BatchGetNamedQueryResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Returns the details of a single named query or a list of up to 50 queries, which you /// provide as an array of query ID strings. Use <a>ListNamedQueries</a> to get the list /// of named query IDs. If information could not be retrieved for a submitted query ID, /// information about the query ID submitted is listed under <a>UnprocessedNamedQueryId</a>. /// Named queries are different from executed queries. Use <a>BatchGetQueryExecution</a> /// to get details about each unique query execution, and <a>ListQueryExecutions</a> to /// get a list of query execution IDs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetNamedQuery service method.</param> /// /// <returns>The response from the BatchGetNamedQuery service method, as returned by Athena.</returns> /// <exception cref="Amazon.Athena.Model.InternalServerException"> /// Indicates a platform issue, which may be due to a transient condition or outage. /// </exception> /// <exception cref="Amazon.Athena.Model.InvalidRequestException"> /// Indicates that something is wrong with the input to the request. For example, a required /// parameter may be missing or out of range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQuery">REST API Reference for BatchGetNamedQuery Operation</seealso> public BatchGetNamedQueryResponse BatchGetNamedQuery(BatchGetNamedQueryRequest request) { var marshaller = new BatchGetNamedQueryRequestMarshaller(); var unmarshaller = BatchGetNamedQueryResponseUnmarshaller.Instance; return(Invoke <BatchGetNamedQueryRequest, BatchGetNamedQueryResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the BatchGetNamedQuery operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchGetNamedQuery operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQuery">REST API Reference for BatchGetNamedQuery Operation</seealso> public virtual Task <BatchGetNamedQueryResponse> BatchGetNamedQueryAsync(BatchGetNamedQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = BatchGetNamedQueryRequestMarshaller.Instance; var unmarshaller = BatchGetNamedQueryResponseUnmarshaller.Instance; return(InvokeAsync <BatchGetNamedQueryRequest, BatchGetNamedQueryResponse>(request, marshaller, unmarshaller, cancellationToken)); }
internal virtual BatchGetNamedQueryResponse BatchGetNamedQuery(BatchGetNamedQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetNamedQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetNamedQueryResponseUnmarshaller.Instance; return(Invoke <BatchGetNamedQueryResponse>(request, options)); }