Amazon Cognito provides authentication, authorization, and user management for your web and mobile apps. Your users can sign in directly with a user name and password, or through a third party such as Facebook, Amazon, Google or Apple.
https://docs.aws.amazon.com/cognito/latest/developerguide/what-is-amazon-cognito.html
You can use identity pools and user pools separately or together.
User pools are user directories that provide sign-up and sign-in options for your app users