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.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
Eq GetDevicePosition Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

Read GetDevicePosition Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

Show GetDevicePosition Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

Generic GetDevicePosition Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

Associated Types

type Rep GetDevicePosition :: Type -> Type #

NFData GetDevicePosition Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

Methods

rnf :: GetDevicePosition -> () #

Hashable GetDevicePosition Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

AWSRequest GetDevicePosition Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

Associated Types

type AWSResponse GetDevicePosition #

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

type Rep GetDevicePosition Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

type Rep GetDevicePosition = D1 ('MetaData "GetDevicePosition" "Amazonka.Location.GetDevicePosition" "libZSservicesZSamazonka-locationZSamazonka-location" 'False) (C1 ('MetaCons "GetDevicePosition'" 'PrefixI 'True) (S1 ('MetaSel ('Just "deviceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "trackerName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetDevicePosition Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

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:

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

Constructors

GetDevicePositionResponse' 

Fields

Instances

Instances details
Eq GetDevicePositionResponse Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

Show GetDevicePositionResponse Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

Generic GetDevicePositionResponse Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

Associated Types

type Rep GetDevicePositionResponse :: Type -> Type #

NFData GetDevicePositionResponse Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

type Rep GetDevicePositionResponse Source # 
Instance details

Defined in Amazonka.Location.GetDevicePosition

type Rep GetDevicePositionResponse = D1 ('MetaData "GetDevicePositionResponse" "Amazonka.Location.GetDevicePosition" "libZSservicesZSamazonka-locationZSamazonka-location" 'False) (C1 ('MetaCons "GetDevicePositionResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "deviceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)) :*: (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)))))

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