Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
List the thing groups in your account.
Synopsis
- listThingGroups :: ListThingGroups
- data ListThingGroups
- ltgNamePrefixFilter :: Lens' ListThingGroups (Maybe Text)
- ltgParentGroup :: Lens' ListThingGroups (Maybe Text)
- ltgNextToken :: Lens' ListThingGroups (Maybe Text)
- ltgRecursive :: Lens' ListThingGroups (Maybe Bool)
- ltgMaxResults :: Lens' ListThingGroups (Maybe Natural)
- listThingGroupsResponse :: Int -> ListThingGroupsResponse
- data ListThingGroupsResponse
- ltgrsThingGroups :: Lens' ListThingGroupsResponse [GroupNameAndARN]
- ltgrsNextToken :: Lens' ListThingGroupsResponse (Maybe Text)
- ltgrsResponseStatus :: Lens' ListThingGroupsResponse Int
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
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:
ltgrsThingGroups
- The thing groups.ltgrsNextToken
- The token used to get the next set of results, or null if there are no additional results.ltgrsResponseStatus
- -- | The response status code.
data ListThingGroupsResponse Source #
See: listThingGroupsResponse
smart constructor.
Instances
Response Lenses
ltgrsThingGroups :: Lens' ListThingGroupsResponse [GroupNameAndARN] Source #
The thing groups.
ltgrsNextToken :: Lens' ListThingGroupsResponse (Maybe Text) Source #
The token used to get the next set of results, or null if there are no additional results.
ltgrsResponseStatus :: Lens' ListThingGroupsResponse Int Source #
- - | The response status code.