I am trying to connect an already existing IdentityPool to my AppSync API Configuration.
When instantianting a new IdentityPool i can access the properties .authenticatedUserRole and .unauthenticatedUserRole. But when i use the methods .fromIdentityPoolArn or .fromIdentityPoolId to fetch the existing IdentityPool i can’t access the properties. Why?!
const idPool = IdentityPool.fromIdentityPoolArn(this, 'importedIdentityPool', 'arn...');
i need this for the identityPoolConfig:
identityPoolConfig: {
identityPoolId: takes a String,
authenticatedUserRole: takes IRole,
unauthenticatedUserRole: takes IRole
}