Copyright | (c) 2013-2021 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 |
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_namePrefixFilter :: Lens' ListThingGroups (Maybe Text)
- listThingGroups_parentGroup :: Lens' ListThingGroups (Maybe Text)
- listThingGroups_nextToken :: Lens' ListThingGroups (Maybe Text)
- listThingGroups_recursive :: Lens' ListThingGroups (Maybe Bool)
- listThingGroups_maxResults :: Lens' ListThingGroups (Maybe Natural)
- data ListThingGroupsResponse = ListThingGroupsResponse' {
- thingGroups :: Maybe [GroupNameAndArn]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListThingGroupsResponse :: Int -> ListThingGroupsResponse
- listThingGroupsResponse_thingGroups :: Lens' ListThingGroupsResponse (Maybe [GroupNameAndArn])
- listThingGroupsResponse_nextToken :: Lens' ListThingGroupsResponse (Maybe Text)
- listThingGroupsResponse_httpStatus :: Lens' ListThingGroupsResponse Int
Creating a Request
data ListThingGroups Source #
See: newListThingGroups
smart constructor.
ListThingGroups' | |
|
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:namePrefixFilter:ListThingGroups'
, listThingGroups_namePrefixFilter
- A filter that limits the results to those with the specified name
prefix.
$sel:parentGroup:ListThingGroups'
, listThingGroups_parentGroup
- A filter that limits the results to those with the specified parent
group.
$sel:nextToken: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:recursive:ListThingGroups'
, listThingGroups_recursive
- If true, return child groups as well.
$sel:maxResults:ListThingGroups'
, listThingGroups_maxResults
- The maximum number of results to return at one time.
Request Lenses
listThingGroups_namePrefixFilter :: Lens' ListThingGroups (Maybe Text) Source #
A filter that limits the results to those with the specified name prefix.
listThingGroups_parentGroup :: Lens' ListThingGroups (Maybe Text) Source #
A filter that limits the results to those with the specified parent group.
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_recursive :: Lens' ListThingGroups (Maybe Bool) Source #
If true, return child groups as well.
listThingGroups_maxResults :: Lens' ListThingGroups (Maybe Natural) Source #
The maximum number of results to return at one time.
Destructuring the Response
data ListThingGroupsResponse Source #
See: newListThingGroupsResponse
smart constructor.
ListThingGroupsResponse' | |
|
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:
$sel:thingGroups:ListThingGroupsResponse'
, listThingGroupsResponse_thingGroups
- The thing groups.
$sel:nextToken: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:httpStatus:ListThingGroupsResponse'
, listThingGroupsResponse_httpStatus
- The response's http status code.
Response Lenses
listThingGroupsResponse_thingGroups :: Lens' ListThingGroupsResponse (Maybe [GroupNameAndArn]) Source #
The thing groups.
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_httpStatus :: Lens' ListThingGroupsResponse Int Source #
The response's http status code.