libZSservicesZSamazonka-locationZSamazonka-location
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Location.Types.DevicePosition

Description

 
Synopsis

Documentation

data DevicePosition Source #

Contains the device position details.

See: newDevicePosition smart constructor.

Constructors

DevicePosition' 

Fields

Instances

Instances details
Eq DevicePosition Source # 
Instance details

Defined in Amazonka.Location.Types.DevicePosition

Show DevicePosition Source # 
Instance details

Defined in Amazonka.Location.Types.DevicePosition

Generic DevicePosition Source # 
Instance details

Defined in Amazonka.Location.Types.DevicePosition

Associated Types

type Rep DevicePosition :: Type -> Type #

NFData DevicePosition Source # 
Instance details

Defined in Amazonka.Location.Types.DevicePosition

Methods

rnf :: DevicePosition -> () #

Hashable DevicePosition Source # 
Instance details

Defined in Amazonka.Location.Types.DevicePosition

FromJSON DevicePosition Source # 
Instance details

Defined in Amazonka.Location.Types.DevicePosition

type Rep DevicePosition Source # 
Instance details

Defined in Amazonka.Location.Types.DevicePosition

type Rep DevicePosition = D1 ('MetaData "DevicePosition" "Amazonka.Location.Types.DevicePosition" "libZSservicesZSamazonka-locationZSamazonka-location" 'False) (C1 ('MetaCons "DevicePosition'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "deviceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "position") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive (NonEmpty Double)))) :*: (S1 ('MetaSel ('Just "receivedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX) :*: S1 ('MetaSel ('Just "sampleTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX))))

newDevicePosition Source #

Create a value of DevicePosition 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:DevicePosition', devicePosition_deviceId - The device whose position you retrieved.

$sel:position:DevicePosition', devicePosition_position - The last known device position.

$sel:receivedTime:DevicePosition', devicePosition_receivedTime - The timestamp for when the tracker resource received the device position in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

$sel:sampleTime:DevicePosition', devicePosition_sampleTime - The timestamp at which the device's position was determined. Uses ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

devicePosition_deviceId :: Lens' DevicePosition (Maybe Text) Source #

The device whose position you retrieved.

devicePosition_position :: Lens' DevicePosition (NonEmpty Double) Source #

The last known device position.

devicePosition_receivedTime :: Lens' DevicePosition UTCTime Source #

The timestamp for when the tracker resource received the device position in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

devicePosition_sampleTime :: Lens' DevicePosition UTCTime Source #

The timestamp at which the device's position was determined. Uses ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.