libZSservicesZSamazonka-iotZSamazonka-iot
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoT.SearchIndex

Description

The query search index.

Requires permission to access the SearchIndex action.

Synopsis

Creating a Request

data SearchIndex Source #

See: newSearchIndex smart constructor.

Constructors

SearchIndex' 

Fields

Instances

Instances details
Eq SearchIndex Source # 
Instance details

Defined in Amazonka.IoT.SearchIndex

Read SearchIndex Source # 
Instance details

Defined in Amazonka.IoT.SearchIndex

Show SearchIndex Source # 
Instance details

Defined in Amazonka.IoT.SearchIndex

Generic SearchIndex Source # 
Instance details

Defined in Amazonka.IoT.SearchIndex

Associated Types

type Rep SearchIndex :: Type -> Type #

NFData SearchIndex Source # 
Instance details

Defined in Amazonka.IoT.SearchIndex

Methods

rnf :: SearchIndex -> () #

Hashable SearchIndex Source # 
Instance details

Defined in Amazonka.IoT.SearchIndex

ToJSON SearchIndex Source # 
Instance details

Defined in Amazonka.IoT.SearchIndex

AWSRequest SearchIndex Source # 
Instance details

Defined in Amazonka.IoT.SearchIndex

Associated Types

type AWSResponse SearchIndex #

ToHeaders SearchIndex Source # 
Instance details

Defined in Amazonka.IoT.SearchIndex

Methods

toHeaders :: SearchIndex -> [Header] #

ToPath SearchIndex Source # 
Instance details

Defined in Amazonka.IoT.SearchIndex

ToQuery SearchIndex Source # 
Instance details

Defined in Amazonka.IoT.SearchIndex

type Rep SearchIndex Source # 
Instance details

Defined in Amazonka.IoT.SearchIndex

type Rep SearchIndex = D1 ('MetaData "SearchIndex" "Amazonka.IoT.SearchIndex" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "SearchIndex'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "queryVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "indexName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "queryString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse SearchIndex Source # 
Instance details

Defined in Amazonka.IoT.SearchIndex

newSearchIndex Source #

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_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.

Destructuring the Response

data SearchIndexResponse Source #

See: newSearchIndexResponse smart constructor.

Constructors

SearchIndexResponse' 

Fields

Instances

Instances details
Eq SearchIndexResponse Source # 
Instance details

Defined in Amazonka.IoT.SearchIndex

Read SearchIndexResponse Source # 
Instance details

Defined in Amazonka.IoT.SearchIndex

Show SearchIndexResponse Source # 
Instance details

Defined in Amazonka.IoT.SearchIndex

Generic SearchIndexResponse Source # 
Instance details

Defined in Amazonka.IoT.SearchIndex

Associated Types

type Rep SearchIndexResponse :: Type -> Type #

NFData SearchIndexResponse Source # 
Instance details

Defined in Amazonka.IoT.SearchIndex

Methods

rnf :: SearchIndexResponse -> () #

type Rep SearchIndexResponse Source # 
Instance details

Defined in Amazonka.IoT.SearchIndex

type Rep SearchIndexResponse = D1 ('MetaData "SearchIndexResponse" "Amazonka.IoT.SearchIndex" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "SearchIndexResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "thingGroups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ThingGroupDocument])) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "things") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ThingDocument])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.