Module Values.GetQueryResultsOutputSource

Streams the results of a single query execution specified by QueryExecutionId from the Athena query results location in Amazon S3. For more information, see Working with query results, recent queries, and output files in the Amazon Athena User Guide. This request does not execute the query but returns results. Use StartQueryExecution to run a query. To stream query results successfully, the IAM principal with permission to call GetQueryResults also must have permissions to the Amazon S3 GetObject action for the Athena query results location. IAM principals with permission to the Amazon S3 GetObject action for the query results location are able to retrieve query results from Amazon S3 even if permission to the GetQueryResults action is denied. To restrict user or role access, ensure that Amazon S3 permissions to the Athena query location are denied.

Sourcetype nonrec t = {
  1. updateCount : Long.t option;
    (*

    The number of rows inserted with a CREATE TABLE AS SELECT, INSERT INTO, or UPDATE statement.

    *)
  2. resultSet : ResultSet.t option;
    (*

    The results of the query execution.

    *)
  3. nextToken : Token.t option;
    (*

    A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

    *)
}
Sourcetype nonrec error = [
  1. | `InternalServerException of InternalServerException.t
  2. | `InvalidRequestException of InvalidRequestException.t
  3. | `TooManyRequestsException of TooManyRequestsException.t
  4. | `Unknown_operation_error of string * string option
]
Sourceval make : ?updateCount:??? -> ?resultSet:??? -> ?nextToken:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InternalServerException of InternalServerException.t | `InvalidRequestException of InvalidRequestException.t | `TooManyRequestsException of TooManyRequestsException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InternalServerException of InternalServerException.t | `InvalidRequestException of InvalidRequestException.t | `TooManyRequestsException of TooManyRequestsException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Long of Long.t | `String of Token.t | `Structure of (string * [> `List of [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of DatumString.t ]) list ] list ]) list ] list | `Structure of (string * [> `List of [> `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `Integer of Integer.t | `String of String_.t ]) list ] list ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t