update_resource_position
async
¶
update_resource_position(
resource_identifier: PositionResourceIdentifier,
resource_type: PositionResourceType,
*,
config_overrides: Optional[AsyncIoTWirelessClientConfig] = None,
geo_json_payload: Optional[GeoJsonPayload] = None,
) -> UpdateResourcePositionResponse
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).
Parameters:
-
resource_identifier(PositionResourceIdentifier) –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.
-
resource_type(PositionResourceType) –The type of resource for which position information is updated, which can be a wireless device or a wireless gateway.
-
geo_json_payload(Optional[GeoJsonPayload], default:None) –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.
Raises:
-
AccessDeniedException–User does not have permission to perform this action.
-
InternalServerException–An unexpected error occurred while processing a request.
-
ResourceNotFoundException–Resource does not exist.
-
ThrottlingException–The request was denied because it exceeded the allowed API request rate.
-
ValidationException–The input did not meet the specified constraints.
-
UnknownServiceError–The service returned an error code this client does not model.