Skip to content

update_position

update_position(
    resource_identifier: PositionResourceIdentifier,
    resource_type: PositionResourceType,
    position: PositionCoordinate,
    *,
    config_overrides: Optional[IoTWirelessClientConfig] = None,
) -> UpdatePositionResponse

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.

Parameters:

Raises:

Source code in docs_src/capo_iot_wireless/_services/io_t_wireless.py
def update_position(
    self,
    resource_identifier: "capo_iot_wireless.types.position_resource_identifier.PositionResourceIdentifier",
    resource_type: "capo_iot_wireless.types.position_resource_type.PositionResourceType",
    position: "capo_iot_wireless.types.position_coordinate.PositionCoordinate",
    *,
    config_overrides: Optional[IoTWirelessClientConfig] = None,
) -> "capo_iot_wireless.types.update_position_response.UpdatePositionResponse":
    """<p>Update the position information of a resource.</p> <important> <p>This action is no longer supported. Calls to update the position information should use the <a href="https://docs.aws.amazon.com/iot-wireless/latest/apireference/API_UpdateResourcePosition.html">UpdateResourcePosition</a> API operation instead.</p> </important>

    Args:
        resource_identifier: <p>Resource identifier of the resource for which position is updated.</p>
        resource_type: <p>Resource type of the resource for which position is updated.</p>
        position: <p>The position information of the resource.</p>

    Raises:
        capo_iot_wireless.errors.access_denied_exception.AccessDeniedException: <p>User does not have permission to perform this action.</p>
        capo_iot_wireless.errors.internal_server_exception.InternalServerException: <p>An unexpected error occurred while processing a request.</p>
        capo_iot_wireless.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource does not exist.</p>
        capo_iot_wireless.errors.throttling_exception.ThrottlingException: <p>The request was denied because it exceeded the allowed API request rate.</p>
        capo_iot_wireless.errors.validation_exception.ValidationException: <p>The input did not meet the specified constraints.</p>
        capo_iot_wireless.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_iot_wireless.types.update_position_request.UpdatePositionRequest]",
    ) -> OperationResponse[
        "capo_iot_wireless.types.update_position_response.UpdatePositionResponse"
    ]:
        import capo_iot_wireless._operations.iotwireless.update_position

        output, http_response = (
            capo_iot_wireless._operations.iotwireless.update_position.update_position(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdatePosition")
    )
    input_: capo_iot_wireless.types.update_position_request.UpdatePositionRequest = {
        "resource_identifier": resource_identifier,
        "resource_type": resource_type,
        "position": position,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output