def get_upload_url(self, expiration_time, object_name): """ Get a presigned url to upload an object :param expiration_time: :param object_name: :return: url as string of the presigned url """ try: key_prefix = str(uuid.uuid4()) return self.__generate_pre_signed_url( expiration_time, object_name, key_prefix, "put_object" ) except ClientError as client_error: logger.exception( NOT_AVAILABLE, client_error, ) raise InternalServerError(NOT_AVAILABLE)