| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoT.ListThingGroups
Description
List the thing groups in your account.
Requires permission to access the ListThingGroups action.
This operation returns paginated results.
Synopsis
- data ListThingGroups = ListThingGroups' {}
- newListThingGroups :: ListThingGroups
- listThingGroups_maxResults :: Lens' ListThingGroups (Maybe Natural)
- listThingGroups_namePrefixFilter :: Lens' ListThingGroups (Maybe Text)
- listThingGroups_nextToken :: Lens' ListThingGroups (Maybe Text)
- listThingGroups_parentGroup :: Lens' ListThingGroups (Maybe Text)
- listThingGroups_recursive :: Lens' ListThingGroups (Maybe Bool)
- data ListThingGroupsResponse = ListThingGroupsResponse' {
- nextToken :: Maybe Text
- thingGroups :: Maybe [GroupNameAndArn]
- httpStatus :: Int
- newListThingGroupsResponse :: Int -> ListThingGroupsResponse
- listThingGroupsResponse_nextToken :: Lens' ListThingGroupsResponse (Maybe Text)
- listThingGroupsResponse_thingGroups :: Lens' ListThingGroupsResponse (Maybe [GroupNameAndArn])
- listThingGroupsResponse_httpStatus :: Lens' ListThingGroupsResponse Int
Creating a Request
data ListThingGroups Source #
See: newListThingGroups smart constructor.
Constructors
| ListThingGroups' | |
Fields
| |
Instances
newListThingGroups :: ListThingGroups Source #
Create a value of ListThingGroups 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:maxResults:ListThingGroups', listThingGroups_maxResults - The maximum number of results to return at one time.
$sel:namePrefixFilter:ListThingGroups', listThingGroups_namePrefixFilter - A filter that limits the results to those with the specified name
prefix.
ListThingGroups, listThingGroups_nextToken - To retrieve the next set of results, the nextToken value from a
previous response; otherwise null to receive the first set of
results.
$sel:parentGroup:ListThingGroups', listThingGroups_parentGroup - A filter that limits the results to those with the specified parent
group.
$sel:recursive:ListThingGroups', listThingGroups_recursive - If true, return child groups as well.
Request Lenses
listThingGroups_maxResults :: Lens' ListThingGroups (Maybe Natural) Source #
The maximum number of results to return at one time.
listThingGroups_namePrefixFilter :: Lens' ListThingGroups (Maybe Text) Source #
A filter that limits the results to those with the specified name prefix.
listThingGroups_nextToken :: Lens' ListThingGroups (Maybe Text) Source #
To retrieve the next set of results, the nextToken value from a
previous response; otherwise null to receive the first set of
results.
listThingGroups_parentGroup :: Lens' ListThingGroups (Maybe Text) Source #
A filter that limits the results to those with the specified parent group.
listThingGroups_recursive :: Lens' ListThingGroups (Maybe Bool) Source #
If true, return child groups as well.
Destructuring the Response
data ListThingGroupsResponse Source #
See: newListThingGroupsResponse smart constructor.
Constructors
| ListThingGroupsResponse' | |
Fields
| |
Instances
newListThingGroupsResponse Source #
Create a value of ListThingGroupsResponse 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:
ListThingGroups, listThingGroupsResponse_nextToken - The token to use to get the next set of results. Will not be returned if
operation has returned all results.
$sel:thingGroups:ListThingGroupsResponse', listThingGroupsResponse_thingGroups - The thing groups.
$sel:httpStatus:ListThingGroupsResponse', listThingGroupsResponse_httpStatus - The response's http status code.
Response Lenses
listThingGroupsResponse_nextToken :: Lens' ListThingGroupsResponse (Maybe Text) Source #
The token to use to get the next set of results. Will not be returned if operation has returned all results.
listThingGroupsResponse_thingGroups :: Lens' ListThingGroupsResponse (Maybe [GroupNameAndArn]) Source #
The thing groups.
listThingGroupsResponse_httpStatus :: Lens' ListThingGroupsResponse Int Source #
The response's http status code.