Skip to main content

resource_positions

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

Overview​

Nameresource_positions
TypeResource
Idaws.iotwireless.resource_positions

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
geo_json_payloadstring (byte)The position information of the resource, displayed as a JSON payload. The payload uses the GeoJSON format, which a format that's used to encode geographic data structures. For more information, see GeoJSON.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_resource_positionselectresource_identifier, resourceType, regionGet the position information for a given wireless device or a wireless gateway resource. The position information uses the World Geodetic System (WGS84).
update_resource_positionupdateresource_identifier, resourceType, regionUpdate the position information of a given wireless device or a wireless gateway resource. The position coordinates are based on the World Geodetic System (WGS84).

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)
resourceTypestringThe type of resource for which position information is updated, which can be a wireless device or a wireless gateway.
resource_identifierstringThe identifier of the resource for which position information is updated. It can be the wireless device ID or the wireless gateway ID, depending on the resource type.

SELECT examples​

Get the position information for a given wireless device or a wireless gateway resource. The position information uses the World Geodetic System (WGS84).

SELECT
geo_json_payload
FROM aws.iotwireless.resource_positions
WHERE resource_identifier = '{{ resource_identifier }}' -- required
AND resourceType = '{{ resourceType }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples​

Update the position information of a given wireless device or a wireless gateway resource. The position coordinates are based on the World Geodetic System (WGS84).

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