search_index
¶
search_index(
query_string: QueryString,
*,
config_overrides: Optional[IoTClientConfig] = 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/io_t.py
15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 | |