I'm trying to implement "Developer Authenticated Identities" for AWS as explained here: https://aws.amazon.com/blogs/mobile/amazon-cognito-announcing-developer-authenticated-identities/
I understand properly the basic flow.
However, I'd like to be able to get a different role depending on my identities (eg. rule-based roles) so that for instance "Admin" users can have more rights on AWS resources. However, while the AWS console in "Edit identity pool" lets me define rule-based roles for a Cognito User Pool Identity Provider, it won't let me do that for a Custom authentication provider.
In other words, is what is described on this page (http://docs.aws.amazon.com/cognito/latest/developerguide/role-based-access-control.html) possible with developer authenticated identities?
How can I achieve that?