amazonka-iot-1.6.1: 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.ListThingGroups

Contents

Description

List the thing groups in your account.

Synopsis

Creating a Request

listThingGroups :: ListThingGroups Source #

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

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

  • ltgNamePrefixFilter - A filter that limits the results to those with the specified name prefix.
  • ltgParentGroup - A filter that limits the results to those with the specified parent group.
  • ltgNextToken - The token used to get the next set of results, or null if there are no additional results.
  • ltgRecursive - If true, return child groups as well.
  • ltgMaxResults - The maximum number of results to return at one time.

data ListThingGroups Source #

See: listThingGroups smart constructor.

Instances
Eq ListThingGroups Source # 
Instance details

Defined in Network.AWS.IoT.ListThingGroups

Data ListThingGroups Source # 
Instance details

Defined in Network.AWS.IoT.ListThingGroups

Methods

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

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

toConstr :: ListThingGroups -> Constr #

dataTypeOf :: ListThingGroups -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListThingGroups Source # 
Instance details

Defined in Network.AWS.IoT.ListThingGroups

Show ListThingGroups Source # 
Instance details

Defined in Network.AWS.IoT.ListThingGroups

Generic ListThingGroups Source # 
Instance details

Defined in Network.AWS.IoT.ListThingGroups

Associated Types

type Rep ListThingGroups :: Type -> Type #

Hashable ListThingGroups Source # 
Instance details

Defined in Network.AWS.IoT.ListThingGroups

AWSRequest ListThingGroups Source # 
Instance details

Defined in Network.AWS.IoT.ListThingGroups

Associated Types

type Rs ListThingGroups :: Type #

ToHeaders ListThingGroups Source # 
Instance details

Defined in Network.AWS.IoT.ListThingGroups

ToPath ListThingGroups Source # 
Instance details

Defined in Network.AWS.IoT.ListThingGroups

ToQuery ListThingGroups Source # 
Instance details

Defined in Network.AWS.IoT.ListThingGroups

NFData ListThingGroups Source # 
Instance details

Defined in Network.AWS.IoT.ListThingGroups

Methods

rnf :: ListThingGroups -> () #

type Rep ListThingGroups Source # 
Instance details

Defined in Network.AWS.IoT.ListThingGroups

type Rep ListThingGroups = D1 (MetaData "ListThingGroups" "Network.AWS.IoT.ListThingGroups" "amazonka-iot-1.6.1-1U0NSVSRVsCEeZIE9W0TkV" False) (C1 (MetaCons "ListThingGroups'" PrefixI True) ((S1 (MetaSel (Just "_ltgNamePrefixFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ltgParentGroup") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_ltgNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_ltgRecursive") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_ltgMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))))))
type Rs ListThingGroups Source # 
Instance details

Defined in Network.AWS.IoT.ListThingGroups

Request Lenses

ltgNamePrefixFilter :: Lens' ListThingGroups (Maybe Text) Source #

A filter that limits the results to those with the specified name prefix.

ltgParentGroup :: Lens' ListThingGroups (Maybe Text) Source #

A filter that limits the results to those with the specified parent group.

ltgNextToken :: Lens' ListThingGroups (Maybe Text) Source #

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

ltgRecursive :: Lens' ListThingGroups (Maybe Bool) Source #

If true, return child groups as well.

ltgMaxResults :: Lens' ListThingGroups (Maybe Natural) Source #

The maximum number of results to return at one time.

Destructuring the Response

listThingGroupsResponse Source #

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

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

data ListThingGroupsResponse Source #

See: listThingGroupsResponse smart constructor.

Instances
Eq ListThingGroupsResponse Source # 
Instance details

Defined in Network.AWS.IoT.ListThingGroups

Data ListThingGroupsResponse Source # 
Instance details

Defined in Network.AWS.IoT.ListThingGroups

Methods

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

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

toConstr :: ListThingGroupsResponse -> Constr #

dataTypeOf :: ListThingGroupsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListThingGroupsResponse Source # 
Instance details

Defined in Network.AWS.IoT.ListThingGroups

Show ListThingGroupsResponse Source # 
Instance details

Defined in Network.AWS.IoT.ListThingGroups

Generic ListThingGroupsResponse Source # 
Instance details

Defined in Network.AWS.IoT.ListThingGroups

Associated Types

type Rep ListThingGroupsResponse :: Type -> Type #

NFData ListThingGroupsResponse Source # 
Instance details

Defined in Network.AWS.IoT.ListThingGroups

Methods

rnf :: ListThingGroupsResponse -> () #

type Rep ListThingGroupsResponse Source # 
Instance details

Defined in Network.AWS.IoT.ListThingGroups

type Rep ListThingGroupsResponse = D1 (MetaData "ListThingGroupsResponse" "Network.AWS.IoT.ListThingGroups" "amazonka-iot-1.6.1-1U0NSVSRVsCEeZIE9W0TkV" False) (C1 (MetaCons "ListThingGroupsResponse'" PrefixI True) (S1 (MetaSel (Just "_ltgrsThingGroups") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [GroupNameAndARN])) :*: (S1 (MetaSel (Just "_ltgrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ltgrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

ltgrsNextToken :: Lens' ListThingGroupsResponse (Maybe Text) Source #

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