使用下面的代码,我得到了OpenID token一个IdentityId.
import boto3
cognito_client = boto3.client('cognito-identity')
data = {'IdentityPoolId': identity_pool_id,
'Logins': logins,
'TokenDuration': 24 * 60 * 60,
'IdentityId': identity_id}
cognito_client.get_open_id_token_for_developer_identity(
**data)
但我有两个IdentityPoolId,所以我需要确定IdentityPoolId一个给定的合适的IdentityId。
使用 boto3 库我如何识别一个是否IdentityId属于一个IdentityPoolId?