Skip to main content

positions

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

Overview

Namepositions
TypeResource
Idaws.iotwireless.positions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
accuracyobjectThe accuracy of the estimated position in meters. An empty value indicates that no position data is available. A value of ‘0.0’ value indicates that position data is available. This data corresponds to the position information that you specified instead of the position computed by solver.
positionarrayThe position information of the resource.
solver_providerstringThe vendor of the positioning solver. (Semtech)
solver_typestringThe type of solver used to identify the position of the resource. (GNSS)
solver_versionstringThe version of the positioning solver.
timestampstringThe timestamp at which the device's position was determined. (pattern: <code>^([+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([.,]\d+(?!:))?)?(\17[0-5]\d([.,]\d+)?)?([zZ]|([+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_positionselectresource_identifier, resourceType, regionGet the position information for a given resource. This action is no longer supported. Calls to retrieve the position information should use the GetResourcePosition API operation instead.
update_positionupdateresource_identifier, resourceType, regionUpdate the position information of a resource. This action is no longer supported. Calls to update the position information should use the UpdateResourcePosition API operation instead.

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
regionstringAWS region (default: us-east-1)
resourceTypestringResource type of the resource for which position is updated.
resource_identifierstringResource identifier of the resource for which position is updated.

SELECT examples

Get the position information for a given resource. This action is no longer supported. Calls to retrieve the position information should use the GetResourcePosition API operation instead.

SELECT
accuracy,
position,
solver_provider,
solver_type,
solver_version,
timestamp
FROM aws.iotwireless.positions
WHERE resource_identifier = '{{ resource_identifier }}' -- required
AND resourceType = '{{ resourceType }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Update the position information of a resource. This action is no longer supported. Calls to update the position information should use the UpdateResourcePosition API operation instead.

UPDATE aws.iotwireless.positions
SET
Position = '{{ Position }}'
WHERE
resource_identifier = '{{ resource_identifier }}' --required
AND resourceType = '{{ resourceType }}' --required
AND region = '{{ region }}' --required;