| 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 |
Amazonka.Location.GetDevicePosition
Description
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' {}
- newGetDevicePositionResponse :: Int -> NonEmpty Double -> UTCTime -> UTCTime -> GetDevicePositionResponse
- getDevicePositionResponse_accuracy :: Lens' GetDevicePositionResponse (Maybe PositionalAccuracy)
- getDevicePositionResponse_deviceId :: Lens' GetDevicePositionResponse (Maybe Text)
- getDevicePositionResponse_positionProperties :: Lens' GetDevicePositionResponse (Maybe (HashMap Text 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.
Constructors
| GetDevicePosition' | |
Fields
| |
Instances
Arguments
| :: 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:
GetDevicePosition, getDevicePosition_deviceId - The device whose position you want to retrieve.
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.
Constructors
| GetDevicePositionResponse' | |
Fields
| |
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:
GetDevicePositionResponse, getDevicePositionResponse_accuracy - The accuracy of the device position.
GetDevicePosition, getDevicePositionResponse_deviceId - The device whose position you retrieved.
GetDevicePositionResponse, getDevicePositionResponse_positionProperties - The properties associated with the position.
$sel:httpStatus:GetDevicePositionResponse', getDevicePositionResponse_httpStatus - The response's http status code.
GetDevicePositionResponse, getDevicePositionResponse_position - The last known device position.
GetDevicePositionResponse, getDevicePositionResponse_receivedTime - The timestamp for when the tracker resource received the device position
in ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ.
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_accuracy :: Lens' GetDevicePositionResponse (Maybe PositionalAccuracy) Source #
The accuracy of the device position.
getDevicePositionResponse_deviceId :: Lens' GetDevicePositionResponse (Maybe Text) Source #
The device whose position you retrieved.
getDevicePositionResponse_positionProperties :: Lens' GetDevicePositionResponse (Maybe (HashMap Text Text)) Source #
The properties associated with the position.
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.