Skip to main content

indexes

Creates, updates, deletes, gets or lists an indexes resource.

Overview

Nameindexes
TypeResource
Idaws.iot.indexes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
index_namestringThe index name. (pattern: <code>[a-zA-Z0-9:_-]+</code>)
index_statusstringThe index status. (ACTIVE, BUILDING, REBUILDING)
schemastringContains a value that specifies the type of indexing performed. Valid values are: REGISTRY – Your thing index contains only registry data. REGISTRY_AND_SHADOW - Your thing index contains registry data and shadow data. REGISTRY_AND_CONNECTIVITY_STATUS - Your thing index contains registry data and thing connectivity status data. REGISTRY_AND_SHADOW_AND_CONNECTIVITY_STATUS - Your thing index contains registry data, shadow data, and thing connectivity status data. MULTI_INDEXING_MODE - Your thing index contains multiple data sources. For more information, see GetIndexingConfiguration.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_indexselectindex_name, regionDescribes a search index. Requires permission to access the DescribeIndex action.
search_indexselectregionSearches the specified index. If a device has never connected to IoT Core or was disconnected for more than 1 hour before fleet indexing's thingConnectivityIndexingMode was enabled, the connectivity object for this device in the response will have the connected field set to false with no additional session details. Requires permission to access the SearchIndex action.

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
index_namestringThe index name.
regionstringAWS region (default: us-east-1)

SELECT examples

Describes a search index. Requires permission to access the DescribeIndex action.

SELECT
index_name,
index_status,
schema
FROM aws.iot.indexes
WHERE index_name = '{{ index_name }}' -- required
AND region = '{{ region }}' -- required
;