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

Contents

Description

Lists your things. Use the attributeName and attributeValue parameters to filter your things. For example, calling ListThings with attributeName=Color and attributeValue=Red retrieves all things in the registry that contain an attribute Color with the value Red .

This operation returns paginated results.

Synopsis

Creating a Request

listThings :: ListThings Source #

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

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

  • ltAttributeValue - The attribute value used to search for things.
  • ltThingTypeName - The name of the thing type used to search for things.
  • ltNextToken - The token used to get the next set of results, or null if there are no additional results.
  • ltAttributeName - The attribute name used to search for things.
  • ltMaxResults - The maximum number of results to return in this operation.

data ListThings Source #

The input for the ListThings operation.

See: listThings smart constructor.

Instances

Eq ListThings Source # 
Data ListThings Source # 

Methods

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

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

toConstr :: ListThings -> Constr #

dataTypeOf :: ListThings -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListThings Source # 
Show ListThings Source # 
Generic ListThings Source # 

Associated Types

type Rep ListThings :: * -> * #

Hashable ListThings Source # 
NFData ListThings Source # 

Methods

rnf :: ListThings -> () #

AWSPager ListThings Source # 
AWSRequest ListThings Source # 
ToHeaders ListThings Source # 

Methods

toHeaders :: ListThings -> [Header] #

ToPath ListThings Source # 
ToQuery ListThings Source # 
type Rep ListThings Source # 
type Rep ListThings = D1 * (MetaData "ListThings" "Network.AWS.IoT.ListThings" "amazonka-iot-1.6.0-GZYdsKS1TEjHFZo6BqaYJk" False) (C1 * (MetaCons "ListThings'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_ltAttributeValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_ltThingTypeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltAttributeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_ltMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat)))))))
type Rs ListThings Source # 

Request Lenses

ltAttributeValue :: Lens' ListThings (Maybe Text) Source #

The attribute value used to search for things.

ltThingTypeName :: Lens' ListThings (Maybe Text) Source #

The name of the thing type used to search for things.

ltNextToken :: Lens' ListThings (Maybe Text) Source #

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

ltAttributeName :: Lens' ListThings (Maybe Text) Source #

The attribute name used to search for things.

ltMaxResults :: Lens' ListThings (Maybe Natural) Source #

The maximum number of results to return in this operation.

Destructuring the Response

listThingsResponse Source #

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

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

data ListThingsResponse Source #

The output from the ListThings operation.

See: listThingsResponse smart constructor.

Instances

Eq ListThingsResponse Source # 
Data ListThingsResponse Source # 

Methods

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

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

toConstr :: ListThingsResponse -> Constr #

dataTypeOf :: ListThingsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListThingsResponse Source # 
Show ListThingsResponse Source # 
Generic ListThingsResponse Source # 
NFData ListThingsResponse Source # 

Methods

rnf :: ListThingsResponse -> () #

type Rep ListThingsResponse Source # 
type Rep ListThingsResponse = D1 * (MetaData "ListThingsResponse" "Network.AWS.IoT.ListThings" "amazonka-iot-1.6.0-GZYdsKS1TEjHFZo6BqaYJk" False) (C1 * (MetaCons "ListThingsResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltrsThings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [ThingAttribute]))) (S1 * (MetaSel (Just Symbol "_ltrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

ltrsNextToken :: Lens' ListThingsResponse (Maybe Text) Source #

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

ltrsResponseStatus :: Lens' ListThingsResponse Int Source #

  • - | The response status code.