| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoT.SearchIndex
Description
The query search index.
Requires permission to access the SearchIndex action.
Synopsis
- data SearchIndex = SearchIndex' {
- indexName :: Maybe Text
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- queryVersion :: Maybe Text
- queryString :: Text
- newSearchIndex :: Text -> SearchIndex
- searchIndex_indexName :: Lens' SearchIndex (Maybe Text)
- searchIndex_maxResults :: Lens' SearchIndex (Maybe Natural)
- searchIndex_nextToken :: Lens' SearchIndex (Maybe Text)
- searchIndex_queryVersion :: Lens' SearchIndex (Maybe Text)
- searchIndex_queryString :: Lens' SearchIndex Text
- data SearchIndexResponse = SearchIndexResponse' {
- nextToken :: Maybe Text
- thingGroups :: Maybe [ThingGroupDocument]
- things :: Maybe [ThingDocument]
- httpStatus :: Int
- newSearchIndexResponse :: Int -> SearchIndexResponse
- searchIndexResponse_nextToken :: Lens' SearchIndexResponse (Maybe Text)
- searchIndexResponse_thingGroups :: Lens' SearchIndexResponse (Maybe [ThingGroupDocument])
- searchIndexResponse_things :: Lens' SearchIndexResponse (Maybe [ThingDocument])
- searchIndexResponse_httpStatus :: Lens' SearchIndexResponse Int
Creating a Request
data SearchIndex Source #
See: newSearchIndex smart constructor.
Constructors
| SearchIndex' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> SearchIndex |
Create a value of SearchIndex with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:indexName:SearchIndex', searchIndex_indexName - The search index name.
$sel:maxResults:SearchIndex', searchIndex_maxResults - The maximum number of results to return at one time.
SearchIndex, searchIndex_nextToken - The token used to get the next set of results, or null if there are no
additional results.
$sel:queryVersion:SearchIndex', searchIndex_queryVersion - The query version.
SearchIndex, searchIndex_queryString - The search query string. For more information about the search query
syntax, see
Query syntax.
Request Lenses
searchIndex_indexName :: Lens' SearchIndex (Maybe Text) Source #
The search index name.
searchIndex_maxResults :: Lens' SearchIndex (Maybe Natural) Source #
The maximum number of results to return at one time.
searchIndex_nextToken :: Lens' SearchIndex (Maybe Text) Source #
The token used to get the next set of results, or null if there are no
additional results.
searchIndex_queryVersion :: Lens' SearchIndex (Maybe Text) Source #
The query version.
searchIndex_queryString :: Lens' SearchIndex Text Source #
The search query string. For more information about the search query syntax, see Query syntax.
Destructuring the Response
data SearchIndexResponse Source #
See: newSearchIndexResponse smart constructor.
Constructors
| SearchIndexResponse' | |
Fields
| |
Instances
newSearchIndexResponse Source #
Arguments
| :: Int | |
| -> SearchIndexResponse |
Create a value of SearchIndexResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
SearchIndex, searchIndexResponse_nextToken - The token used to get the next set of results, or null if there are no
additional results.
$sel:thingGroups:SearchIndexResponse', searchIndexResponse_thingGroups - The thing groups that match the search query.
$sel:things:SearchIndexResponse', searchIndexResponse_things - The things that match the search query.
$sel:httpStatus:SearchIndexResponse', searchIndexResponse_httpStatus - The response's http status code.
Response Lenses
searchIndexResponse_nextToken :: Lens' SearchIndexResponse (Maybe Text) Source #
The token used to get the next set of results, or null if there are no
additional results.
searchIndexResponse_thingGroups :: Lens' SearchIndexResponse (Maybe [ThingGroupDocument]) Source #
The thing groups that match the search query.
searchIndexResponse_things :: Lens' SearchIndexResponse (Maybe [ThingDocument]) Source #
The things that match the search query.
searchIndexResponse_httpStatus :: Lens' SearchIndexResponse Int Source #
The response's http status code.