Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
The query search index.
Requires permission to access the SearchIndex action.
Synopsis
- data SearchIndex = SearchIndex' {
- queryVersion :: Maybe Text
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- indexName :: Maybe Text
- queryString :: Text
- newSearchIndex :: Text -> SearchIndex
- searchIndex_queryVersion :: Lens' SearchIndex (Maybe Text)
- searchIndex_nextToken :: Lens' SearchIndex (Maybe Text)
- searchIndex_maxResults :: Lens' SearchIndex (Maybe Natural)
- searchIndex_indexName :: Lens' SearchIndex (Maybe Text)
- searchIndex_queryString :: Lens' SearchIndex Text
- data SearchIndexResponse = SearchIndexResponse' {
- thingGroups :: Maybe [ThingGroupDocument]
- nextToken :: Maybe Text
- things :: Maybe [ThingDocument]
- httpStatus :: Int
- newSearchIndexResponse :: Int -> SearchIndexResponse
- searchIndexResponse_thingGroups :: Lens' SearchIndexResponse (Maybe [ThingGroupDocument])
- searchIndexResponse_nextToken :: Lens' SearchIndexResponse (Maybe Text)
- searchIndexResponse_things :: Lens' SearchIndexResponse (Maybe [ThingDocument])
- searchIndexResponse_httpStatus :: Lens' SearchIndexResponse Int
Creating a Request
data SearchIndex Source #
See: newSearchIndex
smart constructor.
SearchIndex' | |
|
Instances
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:queryVersion:SearchIndex'
, searchIndex_queryVersion
- The query version.
$sel:nextToken:SearchIndex'
, searchIndex_nextToken
- The token used to get the next set of results, or null
if there are no
additional results.
$sel:maxResults:SearchIndex'
, searchIndex_maxResults
- The maximum number of results to return at one time.
$sel:indexName:SearchIndex'
, searchIndex_indexName
- The search index name.
$sel:queryString:SearchIndex'
, searchIndex_queryString
- The search query string.
Request Lenses
searchIndex_queryVersion :: Lens' SearchIndex (Maybe Text) Source #
The query version.
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_maxResults :: Lens' SearchIndex (Maybe Natural) Source #
The maximum number of results to return at one time.
searchIndex_indexName :: Lens' SearchIndex (Maybe Text) Source #
The search index name.
searchIndex_queryString :: Lens' SearchIndex Text Source #
The search query string.
Destructuring the Response
data SearchIndexResponse Source #
See: newSearchIndexResponse
smart constructor.
SearchIndexResponse' | |
|
Instances
newSearchIndexResponse Source #
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:
$sel:thingGroups:SearchIndexResponse'
, searchIndexResponse_thingGroups
- The thing groups that match the search query.
$sel:nextToken:SearchIndex'
, searchIndexResponse_nextToken
- The token used to get the next set of results, or null
if there are no
additional results.
$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_thingGroups :: Lens' SearchIndexResponse (Maybe [ThingGroupDocument]) Source #
The thing groups that match the search query.
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_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.