| 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.ListThingTypes
Description
Lists the existing thing types.
Requires permission to access the ListThingTypes action.
This operation returns paginated results.
Synopsis
- data ListThingTypes = ListThingTypes' {}
- newListThingTypes :: ListThingTypes
- listThingTypes_maxResults :: Lens' ListThingTypes (Maybe Natural)
- listThingTypes_nextToken :: Lens' ListThingTypes (Maybe Text)
- listThingTypes_thingTypeName :: Lens' ListThingTypes (Maybe Text)
- data ListThingTypesResponse = ListThingTypesResponse' {}
- newListThingTypesResponse :: Int -> ListThingTypesResponse
- listThingTypesResponse_nextToken :: Lens' ListThingTypesResponse (Maybe Text)
- listThingTypesResponse_thingTypes :: Lens' ListThingTypesResponse (Maybe [ThingTypeDefinition])
- listThingTypesResponse_httpStatus :: Lens' ListThingTypesResponse Int
Creating a Request
data ListThingTypes Source #
The input for the ListThingTypes operation.
See: newListThingTypes smart constructor.
Constructors
| ListThingTypes' | |
Fields
| |
Instances
newListThingTypes :: ListThingTypes Source #
Create a value of ListThingTypes 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:ListThingTypes', listThingTypes_maxResults - The maximum number of results to return in this operation.
ListThingTypes, listThingTypes_nextToken - To retrieve the next set of results, the nextToken value from a
previous response; otherwise null to receive the first set of
results.
ListThingTypes, listThingTypes_thingTypeName - The name of the thing type.
Request Lenses
listThingTypes_maxResults :: Lens' ListThingTypes (Maybe Natural) Source #
The maximum number of results to return in this operation.
listThingTypes_nextToken :: Lens' ListThingTypes (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.
listThingTypes_thingTypeName :: Lens' ListThingTypes (Maybe Text) Source #
The name of the thing type.
Destructuring the Response
data ListThingTypesResponse Source #
The output for the ListThingTypes operation.
See: newListThingTypesResponse smart constructor.
Constructors
| ListThingTypesResponse' | |
Fields
| |
Instances
newListThingTypesResponse Source #
Create a value of ListThingTypesResponse 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:
ListThingTypes, listThingTypesResponse_nextToken - The token for the next set of results. Will not be returned if operation
has returned all results.
$sel:thingTypes:ListThingTypesResponse', listThingTypesResponse_thingTypes - The thing types.
$sel:httpStatus:ListThingTypesResponse', listThingTypesResponse_httpStatus - The response's http status code.
Response Lenses
listThingTypesResponse_nextToken :: Lens' ListThingTypesResponse (Maybe Text) Source #
The token for the next set of results. Will not be returned if operation has returned all results.
listThingTypesResponse_thingTypes :: Lens' ListThingTypesResponse (Maybe [ThingTypeDefinition]) Source #
The thing types.
listThingTypesResponse_httpStatus :: Lens' ListThingTypesResponse Int Source #
The response's http status code.