amazonka-iot-1.6.0: Amazon IoT SDK.

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

Network.AWS.IoT.SearchIndex

Contents

Description

The query search index.

Synopsis

Creating a Request

searchIndex Source #

Creates a value of SearchIndex with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data SearchIndex Source #

See: searchIndex smart constructor.

Instances

Eq SearchIndex Source # 
Data SearchIndex Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SearchIndex -> c SearchIndex #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SearchIndex #

toConstr :: SearchIndex -> Constr #

dataTypeOf :: SearchIndex -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c SearchIndex) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SearchIndex) #

gmapT :: (forall b. Data b => b -> b) -> SearchIndex -> SearchIndex #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SearchIndex -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SearchIndex -> r #

gmapQ :: (forall d. Data d => d -> u) -> SearchIndex -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SearchIndex -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SearchIndex -> m SearchIndex #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SearchIndex -> m SearchIndex #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SearchIndex -> m SearchIndex #

Read SearchIndex Source # 
Show SearchIndex Source # 
Generic SearchIndex Source # 

Associated Types

type Rep SearchIndex :: * -> * #

Hashable SearchIndex Source # 
ToJSON SearchIndex Source # 
NFData SearchIndex Source # 

Methods

rnf :: SearchIndex -> () #

AWSRequest SearchIndex Source # 
ToHeaders SearchIndex Source # 

Methods

toHeaders :: SearchIndex -> [Header] #

ToPath SearchIndex Source # 
ToQuery SearchIndex Source # 
type Rep SearchIndex Source # 
type Rep SearchIndex = D1 * (MetaData "SearchIndex" "Network.AWS.IoT.SearchIndex" "amazonka-iot-1.6.0-GZYdsKS1TEjHFZo6BqaYJk" False) (C1 * (MetaCons "SearchIndex'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_siQueryVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_siNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_siMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) ((:*:) * (S1 * (MetaSel (Just Symbol "_siIndexName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_siQueryString") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))
type Rs SearchIndex Source # 

Request Lenses

siNextToken :: Lens' SearchIndex (Maybe Text) Source #

The token used to get the next set of results, or null if there are no additional results.

siMaxResults :: Lens' SearchIndex (Maybe Natural) Source #

The maximum number of results to return at one time.

siIndexName :: Lens' SearchIndex (Maybe Text) Source #

The search index name.

siQueryString :: Lens' SearchIndex Text Source #

The search query string.

Destructuring the Response

searchIndexResponse Source #

Creates a value of SearchIndexResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • sirsNextToken - The token used to get the next set of results, or null if there are no additional results.
  • sirsThings - The things that match the search query.
  • sirsResponseStatus - -- | The response status code.

data SearchIndexResponse Source #

See: searchIndexResponse smart constructor.

Instances

Eq SearchIndexResponse Source # 
Data SearchIndexResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SearchIndexResponse -> c SearchIndexResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SearchIndexResponse #

toConstr :: SearchIndexResponse -> Constr #

dataTypeOf :: SearchIndexResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c SearchIndexResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SearchIndexResponse) #

gmapT :: (forall b. Data b => b -> b) -> SearchIndexResponse -> SearchIndexResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SearchIndexResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SearchIndexResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> SearchIndexResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SearchIndexResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SearchIndexResponse -> m SearchIndexResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SearchIndexResponse -> m SearchIndexResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SearchIndexResponse -> m SearchIndexResponse #

Read SearchIndexResponse Source # 
Show SearchIndexResponse Source # 
Generic SearchIndexResponse Source # 
NFData SearchIndexResponse Source # 

Methods

rnf :: SearchIndexResponse -> () #

type Rep SearchIndexResponse Source # 
type Rep SearchIndexResponse = D1 * (MetaData "SearchIndexResponse" "Network.AWS.IoT.SearchIndex" "amazonka-iot-1.6.0-GZYdsKS1TEjHFZo6BqaYJk" False) (C1 * (MetaCons "SearchIndexResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_sirsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_sirsThings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [ThingDocument]))) (S1 * (MetaSel (Just Symbol "_sirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

sirsNextToken :: Lens' SearchIndexResponse (Maybe Text) Source #

The token used to get the next set of results, or null if there are no additional results.

sirsThings :: Lens' SearchIndexResponse [ThingDocument] Source #

The things that match the search query.

sirsResponseStatus :: Lens' SearchIndexResponse Int Source #

  • - | The response status code.