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 a device's most recent position according to its sample time.
Device positions are deleted after 30 days.
Synopsis
- data GetDevicePosition = GetDevicePosition' {
- deviceId :: Text
- trackerName :: Text
- newGetDevicePosition :: Text -> Text -> GetDevicePosition
- getDevicePosition_deviceId :: Lens' GetDevicePosition Text
- getDevicePosition_trackerName :: Lens' GetDevicePosition Text
- data GetDevicePositionResponse = GetDevicePositionResponse' {
- deviceId :: Maybe Text
- httpStatus :: Int
- position :: Sensitive (NonEmpty Double)
- receivedTime :: POSIX
- sampleTime :: POSIX
- newGetDevicePositionResponse :: Int -> NonEmpty Double -> UTCTime -> UTCTime -> GetDevicePositionResponse
- getDevicePositionResponse_deviceId :: Lens' GetDevicePositionResponse (Maybe Text)
- getDevicePositionResponse_httpStatus :: Lens' GetDevicePositionResponse Int
- getDevicePositionResponse_position :: Lens' GetDevicePositionResponse (NonEmpty Double)
- getDevicePositionResponse_receivedTime :: Lens' GetDevicePositionResponse UTCTime
- getDevicePositionResponse_sampleTime :: Lens' GetDevicePositionResponse UTCTime
Creating a Request
data GetDevicePosition Source #
See: newGetDevicePosition
smart constructor.
GetDevicePosition' | |
|
Instances
:: Text | |
-> Text | |
-> GetDevicePosition |
Create a value of GetDevicePosition
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:deviceId:GetDevicePosition'
, getDevicePosition_deviceId
- The device whose position you want to retrieve.
$sel:trackerName:GetDevicePosition'
, getDevicePosition_trackerName
- The tracker resource receiving the position update.
Request Lenses
getDevicePosition_deviceId :: Lens' GetDevicePosition Text Source #
The device whose position you want to retrieve.
getDevicePosition_trackerName :: Lens' GetDevicePosition Text Source #
The tracker resource receiving the position update.
Destructuring the Response
data GetDevicePositionResponse Source #
See: newGetDevicePositionResponse
smart constructor.
GetDevicePositionResponse' | |
|
Instances
newGetDevicePositionResponse Source #
Create a value of GetDevicePositionResponse
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:deviceId:GetDevicePosition'
, getDevicePositionResponse_deviceId
- The device whose position you retrieved.
$sel:httpStatus:GetDevicePositionResponse'
, getDevicePositionResponse_httpStatus
- The response's http status code.
$sel:position:GetDevicePositionResponse'
, getDevicePositionResponse_position
- The last known device position.
$sel:receivedTime:GetDevicePositionResponse'
, getDevicePositionResponse_receivedTime
- The timestamp for when the tracker resource received the device position
in ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ
.
$sel:sampleTime:GetDevicePositionResponse'
, getDevicePositionResponse_sampleTime
- The timestamp at which the device's position was determined. Uses
ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ
.
Response Lenses
getDevicePositionResponse_deviceId :: Lens' GetDevicePositionResponse (Maybe Text) Source #
The device whose position you retrieved.
getDevicePositionResponse_httpStatus :: Lens' GetDevicePositionResponse Int Source #
The response's http status code.
getDevicePositionResponse_position :: Lens' GetDevicePositionResponse (NonEmpty Double) Source #
The last known device position.
getDevicePositionResponse_receivedTime :: Lens' GetDevicePositionResponse UTCTime Source #
The timestamp for when the tracker resource received the device position
in ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ
.
getDevicePositionResponse_sampleTime :: Lens' GetDevicePositionResponse UTCTime Source #
The timestamp at which the device's position was determined. Uses
ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ
.