Can we trigger pre token generation lambda in AWS Cognito for app clients (client credentials)?
I figured that out myself and found Cognito trigger "Pre-Token generation" lambda supports the only amendment to ID tokens and not access tokens. So, this will only work if an actual user is trying to get token and not for app clients as app clients only get access token.