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 |
Retrieves the device position history from a tracker resource within a specified range of time.
Device positions are deleted after 30 days.
This operation returns paginated results.
Synopsis
- data GetDevicePositionHistory = GetDevicePositionHistory' {}
- newGetDevicePositionHistory :: Text -> Text -> GetDevicePositionHistory
- getDevicePositionHistory_endTimeExclusive :: Lens' GetDevicePositionHistory (Maybe UTCTime)
- getDevicePositionHistory_maxResults :: Lens' GetDevicePositionHistory (Maybe Natural)
- getDevicePositionHistory_nextToken :: Lens' GetDevicePositionHistory (Maybe Text)
- getDevicePositionHistory_startTimeInclusive :: Lens' GetDevicePositionHistory (Maybe UTCTime)
- getDevicePositionHistory_deviceId :: Lens' GetDevicePositionHistory Text
- getDevicePositionHistory_trackerName :: Lens' GetDevicePositionHistory Text
- data GetDevicePositionHistoryResponse = GetDevicePositionHistoryResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- devicePositions :: [DevicePosition]
- newGetDevicePositionHistoryResponse :: Int -> GetDevicePositionHistoryResponse
- getDevicePositionHistoryResponse_nextToken :: Lens' GetDevicePositionHistoryResponse (Maybe Text)
- getDevicePositionHistoryResponse_httpStatus :: Lens' GetDevicePositionHistoryResponse Int
- getDevicePositionHistoryResponse_devicePositions :: Lens' GetDevicePositionHistoryResponse [DevicePosition]
Creating a Request
data GetDevicePositionHistory Source #
See: newGetDevicePositionHistory
smart constructor.
GetDevicePositionHistory' | |
|
Instances
newGetDevicePositionHistory Source #
Create a value of GetDevicePositionHistory
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:endTimeExclusive:GetDevicePositionHistory'
, getDevicePositionHistory_endTimeExclusive
- Specify the end time for the position history in
ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ
. By default, the value will be the
time that the request is made.
Requirement:
- The time specified for
EndTimeExclusive
must be after the time forStartTimeInclusive
.
GetDevicePositionHistory
, getDevicePositionHistory_maxResults
- An optional limit for the number of device positions returned in a
single call.
Default value: 100
GetDevicePositionHistory
, getDevicePositionHistory_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
$sel:startTimeInclusive:GetDevicePositionHistory'
, getDevicePositionHistory_startTimeInclusive
- Specify the start time for the position history in
ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ
. By default, the value will be 24
hours prior to the time that the request is made.
Requirement:
- The time specified for
StartTimeInclusive
must be beforeEndTimeExclusive
.
GetDevicePositionHistory
, getDevicePositionHistory_deviceId
- The device whose position history you want to retrieve.
GetDevicePositionHistory
, getDevicePositionHistory_trackerName
- The tracker resource receiving the request for the device position
history.
Request Lenses
getDevicePositionHistory_endTimeExclusive :: Lens' GetDevicePositionHistory (Maybe UTCTime) Source #
Specify the end time for the position history in
ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ
. By default, the value will be the
time that the request is made.
Requirement:
- The time specified for
EndTimeExclusive
must be after the time forStartTimeInclusive
.
getDevicePositionHistory_maxResults :: Lens' GetDevicePositionHistory (Maybe Natural) Source #
An optional limit for the number of device positions returned in a single call.
Default value: 100
getDevicePositionHistory_nextToken :: Lens' GetDevicePositionHistory (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
getDevicePositionHistory_startTimeInclusive :: Lens' GetDevicePositionHistory (Maybe UTCTime) Source #
Specify the start time for the position history in
ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ
. By default, the value will be 24
hours prior to the time that the request is made.
Requirement:
- The time specified for
StartTimeInclusive
must be beforeEndTimeExclusive
.
getDevicePositionHistory_deviceId :: Lens' GetDevicePositionHistory Text Source #
The device whose position history you want to retrieve.
getDevicePositionHistory_trackerName :: Lens' GetDevicePositionHistory Text Source #
The tracker resource receiving the request for the device position history.
Destructuring the Response
data GetDevicePositionHistoryResponse Source #
See: newGetDevicePositionHistoryResponse
smart constructor.
GetDevicePositionHistoryResponse' | |
|
Instances
newGetDevicePositionHistoryResponse Source #
Create a value of GetDevicePositionHistoryResponse
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:
GetDevicePositionHistory
, getDevicePositionHistoryResponse_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:GetDevicePositionHistoryResponse'
, getDevicePositionHistoryResponse_httpStatus
- The response's http status code.
$sel:devicePositions:GetDevicePositionHistoryResponse'
, getDevicePositionHistoryResponse_devicePositions
- Contains the position history details for the requested device.
Response Lenses
getDevicePositionHistoryResponse_nextToken :: Lens' GetDevicePositionHistoryResponse (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.
getDevicePositionHistoryResponse_httpStatus :: Lens' GetDevicePositionHistoryResponse Int Source #
The response's http status code.
getDevicePositionHistoryResponse_devicePositions :: Lens' GetDevicePositionHistoryResponse [DevicePosition] Source #
Contains the position history details for the requested device.