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 to which the specified thing belongs.
Requires permission to access the ListThingGroupsForThing action.
This operation returns paginated results.
Synopsis
- data ListThingGroupsForThing = ListThingGroupsForThing' {}
- newListThingGroupsForThing :: Text -> ListThingGroupsForThing
- listThingGroupsForThing_nextToken :: Lens' ListThingGroupsForThing (Maybe Text)
- listThingGroupsForThing_maxResults :: Lens' ListThingGroupsForThing (Maybe Natural)
- listThingGroupsForThing_thingName :: Lens' ListThingGroupsForThing Text
- data ListThingGroupsForThingResponse = ListThingGroupsForThingResponse' {
- thingGroups :: Maybe [GroupNameAndArn]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListThingGroupsForThingResponse :: Int -> ListThingGroupsForThingResponse
- listThingGroupsForThingResponse_thingGroups :: Lens' ListThingGroupsForThingResponse (Maybe [GroupNameAndArn])
- listThingGroupsForThingResponse_nextToken :: Lens' ListThingGroupsForThingResponse (Maybe Text)
- listThingGroupsForThingResponse_httpStatus :: Lens' ListThingGroupsForThingResponse Int
Creating a Request
data ListThingGroupsForThing Source #
See: newListThingGroupsForThing
smart constructor.
Instances
newListThingGroupsForThing Source #
Create a value of ListThingGroupsForThing
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:nextToken:ListThingGroupsForThing'
, listThingGroupsForThing_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:maxResults:ListThingGroupsForThing'
, listThingGroupsForThing_maxResults
- The maximum number of results to return at one time.
$sel:thingName:ListThingGroupsForThing'
, listThingGroupsForThing_thingName
- The thing name.
Request Lenses
listThingGroupsForThing_nextToken :: Lens' ListThingGroupsForThing (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.
listThingGroupsForThing_maxResults :: Lens' ListThingGroupsForThing (Maybe Natural) Source #
The maximum number of results to return at one time.
listThingGroupsForThing_thingName :: Lens' ListThingGroupsForThing Text Source #
The thing name.
Destructuring the Response
data ListThingGroupsForThingResponse Source #
See: newListThingGroupsForThingResponse
smart constructor.
ListThingGroupsForThingResponse' | |
|
Instances
newListThingGroupsForThingResponse Source #
Create a value of ListThingGroupsForThingResponse
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:ListThingGroupsForThingResponse'
, listThingGroupsForThingResponse_thingGroups
- The thing groups.
$sel:nextToken:ListThingGroupsForThing'
, listThingGroupsForThingResponse_nextToken
- The token to use to get the next set of results, or null if there
are no additional results.
$sel:httpStatus:ListThingGroupsForThingResponse'
, listThingGroupsForThingResponse_httpStatus
- The response's http status code.
Response Lenses
listThingGroupsForThingResponse_thingGroups :: Lens' ListThingGroupsForThingResponse (Maybe [GroupNameAndArn]) Source #
The thing groups.
listThingGroupsForThingResponse_nextToken :: Lens' ListThingGroupsForThingResponse (Maybe Text) Source #
The token to use to get the next set of results, or null if there are no additional results.
listThingGroupsForThingResponse_httpStatus :: Lens' ListThingGroupsForThingResponse Int Source #
The response's http status code.