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.com
cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>
, for example, cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789
.accounts.google.com
www.amazon.com
api.twitter.com
www.digits.com
dict
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.InvalidParameterException
CognitoIdentity.Client.exceptions.ResourceNotFoundException
CognitoIdentity.Client.exceptions.NotAuthorizedException
CognitoIdentity.Client.exceptions.ResourceConflictException
CognitoIdentity.Client.exceptions.TooManyRequestsException
CognitoIdentity.Client.exceptions.InternalErrorException
CognitoIdentity.Client.exceptions.LimitExceededException
CognitoIdentity.Client.exceptions.ExternalServiceException