Amazon Cognito

Table of Contents

Fine-grained user access via IAM

You can use following variables within IAM policies to specify fine-grained user access:

"${cognito-identity.amazonaws.com:aud}" (identity pool id, like "us-east-1:12345678-abcd-abcd-abcd-123456790ab")
"${cognito-identity.amazonaws.com:sub}" (user id, like "us-east-1:12345678-1234-1234-1234-123456790ab")
"${cognito-identity.amazonaws.com:amr}" (login provider, like "graph.facebook.com")

aws-amplify

amazon-cognito-identity-js

amazon-cognito-auth-js