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 |
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_nextToken :: Lens' GetDevicePositionHistory (Maybe Text)
- getDevicePositionHistory_endTimeExclusive :: Lens' GetDevicePositionHistory (Maybe UTCTime)
- 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 #
:: Text | |
-> Text | |
-> GetDevicePositionHistory |
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:nextToken: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: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
.
$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
.
$sel:deviceId:GetDevicePositionHistory'
, getDevicePositionHistory_deviceId
- The device whose position history you want to retrieve.
$sel:trackerName:GetDevicePositionHistory'
, getDevicePositionHistory_trackerName
- The tracker resource receiving the request for the device position
history.
Request Lenses
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_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_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:
$sel:nextToken: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.