search_index
async
¶
search_index(
query_string: QueryString,
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
index_name: Optional[IndexName] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[SearchQueryMaxResults] = None,
query_version: Optional[QueryVersion] = None,
) -> SearchIndexResponse
Searches 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:
-
index_name(Optional[IndexName], default:None) –The search index name.
-
query_string(QueryString) –The search query string. For more information about the search query syntax, see Query syntax.
-
next_token(Optional[NextToken], default:None) –The token used to get the next set of results, or
nullif there are no additional results. -
max_results(Optional[SearchQueryMaxResults], default:None) –The maximum number of results to return per page at one time. This maximum number cannot exceed 100. The response might contain fewer results but will never contain more. You can use
nextTokento retrieve the next set of results untilnextTokenreturnsNULL. -
query_version(Optional[QueryVersion], default:None) –The query version.
Raises:
-
IndexNotReadyException–The index is not ready.
-
InternalFailureException–An unexpected error has occurred.
-
InvalidQueryException–The query is invalid.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
UnauthorizedException–You are not authorized to perform this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/async_io_t.py
16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 | |