@Ritesh Yadav I'm not fully familiar with AWS Cognito but as long as it's a compliant OpenID Connect Provider, you can use it pre-authorize requests as usual.
If you are looking to use it for the Developer Portal login, you will have to setup APIM to use Azure AD B2C and then add AWS Cognito as a Generic OpenID Connect Identity Provider.