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 |
A batch request to retrieve all device positions.
This operation returns paginated results.
Synopsis
- data ListDevicePositions = ListDevicePositions' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- trackerName :: Text
- newListDevicePositions :: Text -> ListDevicePositions
- listDevicePositions_maxResults :: Lens' ListDevicePositions (Maybe Natural)
- listDevicePositions_nextToken :: Lens' ListDevicePositions (Maybe Text)
- listDevicePositions_trackerName :: Lens' ListDevicePositions Text
- data ListDevicePositionsResponse = ListDevicePositionsResponse' {}
- newListDevicePositionsResponse :: Int -> ListDevicePositionsResponse
- listDevicePositionsResponse_nextToken :: Lens' ListDevicePositionsResponse (Maybe Text)
- listDevicePositionsResponse_httpStatus :: Lens' ListDevicePositionsResponse Int
- listDevicePositionsResponse_entries :: Lens' ListDevicePositionsResponse [ListDevicePositionsResponseEntry]
Creating a Request
data ListDevicePositions Source #
See: newListDevicePositions
smart constructor.
ListDevicePositions' | |
|
Instances
newListDevicePositions Source #
Create a value of ListDevicePositions
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:
ListDevicePositions
, listDevicePositions_maxResults
- An optional limit for the number of entries returned in a single call.
Default value: 100
ListDevicePositions
, listDevicePositions_nextToken
- The pagination token specifying which page of results to return in the
response. If no token is provided, the default page is the first page.
Default value: null
ListDevicePositions
, listDevicePositions_trackerName
- The tracker resource containing the requested devices.
Request Lenses
listDevicePositions_maxResults :: Lens' ListDevicePositions (Maybe Natural) Source #
An optional limit for the number of entries returned in a single call.
Default value: 100
listDevicePositions_nextToken :: Lens' ListDevicePositions (Maybe Text) Source #
The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page.
Default value: null
listDevicePositions_trackerName :: Lens' ListDevicePositions Text Source #
The tracker resource containing the requested devices.
Destructuring the Response
data ListDevicePositionsResponse Source #
See: newListDevicePositionsResponse
smart constructor.
ListDevicePositionsResponse' | |
|
Instances
newListDevicePositionsResponse Source #
Create a value of ListDevicePositionsResponse
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:
ListDevicePositions
, listDevicePositionsResponse_nextToken
- A pagination token indicating there are additional pages available. You
can use the token in a following request to fetch the next set of
results.
$sel:httpStatus:ListDevicePositionsResponse'
, listDevicePositionsResponse_httpStatus
- The response's http status code.
$sel:entries:ListDevicePositionsResponse'
, listDevicePositionsResponse_entries
- Contains details about each device's last known position. These details
includes the device ID, the time when the position was sampled on the
device, the time that the service received the update, and the most
recent coordinates.
Response Lenses
listDevicePositionsResponse_nextToken :: Lens' ListDevicePositionsResponse (Maybe Text) Source #
A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.
listDevicePositionsResponse_httpStatus :: Lens' ListDevicePositionsResponse Int Source #
The response's http status code.
listDevicePositionsResponse_entries :: Lens' ListDevicePositionsResponse [ListDevicePositionsResponseEntry] Source #
Contains details about each device's last known position. These details includes the device ID, the time when the position was sampled on the device, the time that the service received the update, and the most recent coordinates.