CognitoIdentity.Client.get_id(**kwargs)¶Generates (or retrieves) a Cognito ID. Supplying multiple logins will create an implicit linked account.
This is a public API. You do not need any credentials to call this API.
See also: AWS API Documentation
Request Syntax
response = client.get_id(
AccountId='string',
IdentityPoolId='string',
Logins={
'string': 'string'
}
)
[REQUIRED]
An identity pool ID in the format REGION:GUID.
A set of optional name-value pairs that map provider names to provider tokens. The available provider names for Logins are as follows:
graph.facebook.comcognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID> , for example, cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789 .accounts.google.comwww.amazon.com.rproxy.govskope.caapi.twitter.comwww.digits.comdict
Response Syntax
{
'IdentityId': 'string'
}
Response Structure
(dict) --
Returned in response to a GetId request.
IdentityId (string) --
A unique identifier in the format REGION:GUID.
Exceptions
CognitoIdentity.Client.exceptions.InvalidParameterExceptionCognitoIdentity.Client.exceptions.ResourceNotFoundExceptionCognitoIdentity.Client.exceptions.NotAuthorizedExceptionCognitoIdentity.Client.exceptions.ResourceConflictExceptionCognitoIdentity.Client.exceptions.TooManyRequestsExceptionCognitoIdentity.Client.exceptions.InternalErrorExceptionCognitoIdentity.Client.exceptions.LimitExceededExceptionCognitoIdentity.Client.exceptions.ExternalServiceException