aws.location.get_device_position
Example SQL Queries
SELECT * FROMaws.location.get_device_positionWHERE"tracker_name" = 'VALUE'AND "device_id" = 'VALUE';Description
Retrieves a device's most recent position according to its sample time.
Device positions are deleted after 30 days.
Table Definition
| Column Name | Column Data Type |
|---|---|
| device_id Required Input Column The device whose position you retrieved. | VARCHAR |
| tracker_name Required Input Column The tracker resource receiving the position update. | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| accuracy The accuracy of the device position. | STRUCT( |
Show child fields
| |
| position The last known device position. | DOUBLE[] |
Show child fields
| |
| position_properties The properties associated with the position. | MAP(VARCHAR, VARCHAR) |
| received_time The timestamp for when the tracker resource received the device position. Uses ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ. | TIMESTAMP_S |
| sample_time The timestamp at which the device's position was determined. Uses ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ. | TIMESTAMP_S |