Skip to main content

device_positions

Creates, updates, deletes, gets or lists a device_positions resource.

Overview

Namedevice_positions
TypeResource
Idaws.location.device_positions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
device_positionsarrayContains device position details such as the device ID, position, and timestamps for when the position was received and sampled.
errorsarrayContains error details for each device that failed to send its position to the tracker resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
batch_get_device_positionselecttracker_name, regionLists the latest device positions for requested devices.
get_device_positionselecttracker_name, device_id, regionRetrieves a device's most recent position according to its sample time. Device positions are deleted after 30 days.
list_device_positionsselecttracker_name, regionA batch request to retrieve all device positions.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
device_idstringThe device whose position you want to retrieve.
regionstringAWS region (default: us-east-1)
tracker_namestringThe tracker resource containing the requested devices.

SELECT examples

Lists the latest device positions for requested devices.

SELECT
device_positions,
errors
FROM aws.location.device_positions
WHERE tracker_name = '{{ tracker_name }}' -- required
AND region = '{{ region }}' -- required
;