Using bellow code i am getting an OpenID token
for an 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)
But i have two IdentityPoolId
, so i need to identify proper IdentityPoolId
for a given IdentityId
.
Using boto3 library how can i identify a IdentityId
belongs to a IdentityPoolId
or not?