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 |
Searches for things associated with the specified entity. You can search by both device and device model.
For example, if two different devices, camera1 and camera2, implement
the camera device model, the user can associate thing1 to camera1 and
thing2 to camera2. SearchThings(camera2)
will return only thing2, but
SearchThings(camera)
will return both thing1 and thing2.
This action searches for exact matches and doesn't perform partial text matching.
This operation returns paginated results.
Synopsis
- data SearchThings = SearchThings' {}
- newSearchThings :: Text -> SearchThings
- searchThings_namespaceVersion :: Lens' SearchThings (Maybe Integer)
- searchThings_nextToken :: Lens' SearchThings (Maybe Text)
- searchThings_maxResults :: Lens' SearchThings (Maybe Natural)
- searchThings_entityId :: Lens' SearchThings Text
- data SearchThingsResponse = SearchThingsResponse' {}
- newSearchThingsResponse :: Int -> SearchThingsResponse
- searchThingsResponse_nextToken :: Lens' SearchThingsResponse (Maybe Text)
- searchThingsResponse_things :: Lens' SearchThingsResponse (Maybe [Thing])
- searchThingsResponse_httpStatus :: Lens' SearchThingsResponse Int
Creating a Request
data SearchThings Source #
See: newSearchThings
smart constructor.
SearchThings' | |
|
Instances
Create a value of SearchThings
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:namespaceVersion:SearchThings'
, searchThings_namespaceVersion
- The version of the user's namespace. Defaults to the latest version of
the user's namespace.
$sel:nextToken:SearchThings'
, searchThings_nextToken
- The string that specifies the next page of results. Use this when
you're paginating results.
$sel:maxResults:SearchThings'
, searchThings_maxResults
- The maximum number of results to return in the response.
$sel:entityId:SearchThings'
, searchThings_entityId
- The ID of the entity to which the things are associated.
The IDs should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:device:DEVICENAME
Request Lenses
searchThings_namespaceVersion :: Lens' SearchThings (Maybe Integer) Source #
The version of the user's namespace. Defaults to the latest version of the user's namespace.
searchThings_nextToken :: Lens' SearchThings (Maybe Text) Source #
The string that specifies the next page of results. Use this when you're paginating results.
searchThings_maxResults :: Lens' SearchThings (Maybe Natural) Source #
The maximum number of results to return in the response.
searchThings_entityId :: Lens' SearchThings Text Source #
The ID of the entity to which the things are associated.
The IDs should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:device:DEVICENAME
Destructuring the Response
data SearchThingsResponse Source #
See: newSearchThingsResponse
smart constructor.
Instances
newSearchThingsResponse Source #
Create a value of SearchThingsResponse
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:SearchThings'
, searchThingsResponse_nextToken
- The string to specify as nextToken
when you request the next page of
results.
$sel:things:SearchThingsResponse'
, searchThingsResponse_things
- An array of things in the result set.
$sel:httpStatus:SearchThingsResponse'
, searchThingsResponse_httpStatus
- The response's http status code.
Response Lenses
searchThingsResponse_nextToken :: Lens' SearchThingsResponse (Maybe Text) Source #
The string to specify as nextToken
when you request the next page of
results.
searchThingsResponse_things :: Lens' SearchThingsResponse (Maybe [Thing]) Source #
An array of things in the result set.
searchThingsResponse_httpStatus :: Lens' SearchThingsResponse Int Source #
The response's http status code.