| 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.ListThingGroupsForThing
Description
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_maxResults :: Lens' ListThingGroupsForThing (Maybe Natural)
- listThingGroupsForThing_nextToken :: Lens' ListThingGroupsForThing (Maybe Text)
- listThingGroupsForThing_thingName :: Lens' ListThingGroupsForThing Text
- data ListThingGroupsForThingResponse = ListThingGroupsForThingResponse' {
- nextToken :: Maybe Text
- thingGroups :: Maybe [GroupNameAndArn]
- httpStatus :: Int
- newListThingGroupsForThingResponse :: Int -> ListThingGroupsForThingResponse
- listThingGroupsForThingResponse_nextToken :: Lens' ListThingGroupsForThingResponse (Maybe Text)
- listThingGroupsForThingResponse_thingGroups :: Lens' ListThingGroupsForThingResponse (Maybe [GroupNameAndArn])
- listThingGroupsForThingResponse_httpStatus :: Lens' ListThingGroupsForThingResponse Int
Creating a Request
data ListThingGroupsForThing Source #
See: newListThingGroupsForThing smart constructor.
Constructors
| ListThingGroupsForThing' | |
Instances
newListThingGroupsForThing Source #
Arguments
| :: Text | |
| -> ListThingGroupsForThing |
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:maxResults:ListThingGroupsForThing', listThingGroupsForThing_maxResults - The maximum number of results to return at one time.
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.
ListThingGroupsForThing, listThingGroupsForThing_thingName - The thing name.
Request Lenses
listThingGroupsForThing_maxResults :: Lens' ListThingGroupsForThing (Maybe Natural) Source #
The maximum number of results to return at one time.
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_thingName :: Lens' ListThingGroupsForThing Text Source #
The thing name.
Destructuring the Response
data ListThingGroupsForThingResponse Source #
See: newListThingGroupsForThingResponse smart constructor.
Constructors
| ListThingGroupsForThingResponse' | |
Fields
| |
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:
ListThingGroupsForThing, listThingGroupsForThingResponse_nextToken - The token to use to get the next set of results, or null if there
are no additional results.
$sel:thingGroups:ListThingGroupsForThingResponse', listThingGroupsForThingResponse_thingGroups - The thing groups.
$sel:httpStatus:ListThingGroupsForThingResponse', listThingGroupsForThingResponse_httpStatus - The response's http status code.
Response Lenses
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_thingGroups :: Lens' ListThingGroupsForThingResponse (Maybe [GroupNameAndArn]) Source #
The thing groups.
listThingGroupsForThingResponse_httpStatus :: Lens' ListThingGroupsForThingResponse Int Source #
The response's http status code.