Skip to main content

query_results

Creates, updates, deletes, gets or lists a query_results resource.

Overview

Namequery_results
TypeResource
Idaws.iotsitewise.query_results

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
rowarrayThe result rows. Each row is a list of string column values, positional to match the columnInfo order. Present when the query status is COMPLETED.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_query_resultsselectworkspace_name, query_id, regionmaxResults, nextTokenRetrieves the paginated results of a query. Returns empty rows if the query is not yet complete.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
query_idstringThe unique identifier for the query execution.
regionstringAWS region (default: us-east-1)
workspace_namestringThe name of the workspace associated with the query.
maxResultsintegerThe maximum number of results to return for each paginated request.
nextTokenstringThe token to be used for the next set of paginated results.

SELECT examples

Retrieves the paginated results of a query. Returns empty rows if the query is not yet complete.

SELECT
row
FROM aws.iotsitewise.query_results
WHERE workspace_name = '{{ workspace_name }}' -- required
AND query_id = '{{ query_id }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;