i tried to create a api function and deploy it to AWS - at the end everything works fine and i was able to use the deployed API - but only with a nasty workaround for me...<