amazonka-location-2.0: Amazon Location Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Location.GetDevicePosition

Description

Retrieves a device's most recent position according to its sample time.

Device positions are deleted after 30 days.

Synopsis

Creating a Request

data GetDevicePosition Source #

See: newGetDevicePosition smart constructor.

Constructors

GetDevicePosition' 

Fields

Instances

Instances details
ToHeaders GetDevicePosition Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

ToPath GetDevicePosition Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

ToQuery GetDevicePosition Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

AWSRequest GetDevicePosition Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

Associated Types

type AWSResponse GetDevicePosition #

Generic GetDevicePosition Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

Associated Types

type Rep GetDevicePosition :: Type -> Type #

Read GetDevicePosition Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

Show GetDevicePosition Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

NFData GetDevicePosition Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

Methods

rnf :: GetDevicePosition -> () #

Eq GetDevicePosition Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

Hashable GetDevicePosition Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

type AWSResponse GetDevicePosition Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

type Rep GetDevicePosition Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

type Rep GetDevicePosition = D1 ('MetaData "GetDevicePosition" "Amazonka.Location.GetDevicePosition" "amazonka-location-2.0-4NLaYgEbMXwF6j2j7LAFNb" 'False) (C1 ('MetaCons "GetDevicePosition'" 'PrefixI 'True) (S1 ('MetaSel ('Just "deviceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "trackerName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetDevicePosition Source #

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

Instances details
Generic GetDevicePositionResponse Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

Associated Types

type Rep GetDevicePositionResponse :: Type -> Type #

Show GetDevicePositionResponse Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

NFData GetDevicePositionResponse Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

Eq GetDevicePositionResponse Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

type Rep GetDevicePositionResponse Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

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_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.