update_resource_position

IoTWireless.Client.update_resource_position(**kwargs)

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

See also: AWS API Documentation

Request Syntax

response = client.update_resource_position(
    ResourceIdentifier='string',
    ResourceType='WirelessDevice'|'WirelessGateway',
    GeoJsonPayload=b'bytes'|file
)
Parameters
  • ResourceIdentifier (string) --

    [REQUIRED]

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

  • ResourceType (string) --

    [REQUIRED]

    The type of resource for which position information is updated, which can be a wireless device or a wireless gateway.

  • GeoJsonPayload (bytes or seekable file-like object) -- 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.
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • IoTWireless.Client.exceptions.ValidationException
  • IoTWireless.Client.exceptions.AccessDeniedException
  • IoTWireless.Client.exceptions.ResourceNotFoundException
  • IoTWireless.Client.exceptions.ThrottlingException
  • IoTWireless.Client.exceptions.InternalServerException