How to setup lambda functions authorization for authenticated and unauthenticated users

Hi,

I’m looking for some serverless.yml example on how to configure the authorization for lambda functions where some requires an authenticated Cognito rol and others an unauthenticated one.