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