Naming may be confused, I will try to clarify.
There are usually two pools at Amazon Cognito Zoo:
- User pool
- Identity Pool (Federated Identifiers)
The "Sub" you are talking about is usually expressed in IAM as
$ {cognito-identity.amazonaws.com:sub}
and will solve the value found in (in javascript sdk)
AWS.config.credentials.identityId
which will look something like
we-east-1: ############ - ######## - ############
It will exist only in the credentials as soon as the credentials are updated.
So, to answer your question, sub .
source share