/// <summary> /// Provides a list of all available query execution IDs. /// /// /// <para> /// For code samples using the AWS SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples /// and Code Samples</a> in the <i>Amazon Athena User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListQueryExecutions service method.</param> /// /// <returns>The response from the ListQueryExecutions 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/ListQueryExecutions">REST API Reference for ListQueryExecutions Operation</seealso> public ListQueryExecutionsResponse ListQueryExecutions(ListQueryExecutionsRequest request) { var marshaller = new ListQueryExecutionsRequestMarshaller(); var unmarshaller = ListQueryExecutionsResponseUnmarshaller.Instance; return(Invoke <ListQueryExecutionsRequest, ListQueryExecutionsResponse>(request, marshaller, unmarshaller)); }
public void ListQueryExecutionsMarshallTest() { var request = InstantiateClassGenerator.Execute <ListQueryExecutionsRequest>(); var marshaller = new ListQueryExecutionsRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <ListQueryExecutionsRequest>(request, jsonRequest); var webResponse = new WebResponseData { Headers = { { "x-amzn-RequestId", Guid.NewGuid().ToString() }, { "x-amz-crc32", "0" } } }; var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("ListQueryExecutions").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = ListQueryExecutionsResponseUnmarshaller.Instance.Unmarshall(context) as ListQueryExecutionsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the ListQueryExecutions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListQueryExecutions 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/ListQueryExecutions">REST API Reference for ListQueryExecutions Operation</seealso> public Task <ListQueryExecutionsResponse> ListQueryExecutionsAsync(ListQueryExecutionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListQueryExecutionsRequestMarshaller(); var unmarshaller = ListQueryExecutionsResponseUnmarshaller.Instance; return(InvokeAsync <ListQueryExecutionsRequest, ListQueryExecutionsResponse>(request, marshaller, unmarshaller, cancellationToken)); }