AmplifyBackend.Client.
get_token
(**kwargs)¶Gets the challenge token based on the given appId and sessionId.
See also: AWS API Documentation
Request Syntax
response = client.get_token(
AppId='string',
SessionId='string'
)
[REQUIRED]
The app ID.
[REQUIRED]
The session ID.
dict
Response Syntax
{
'AppId': 'string',
'ChallengeCode': 'string',
'SessionId': 'string',
'Ttl': 'string'
}
Response Structure
(dict) --
200 response
AppId (string) --
The app ID.
ChallengeCode (string) --
The one-time challenge code for authenticating into the Amplify Admin UI.
SessionId (string) --
A unique ID provided when creating a new challenge token.
Ttl (string) --
The expiry time for the one-time generated token code.
Exceptions
AmplifyBackend.Client.exceptions.NotFoundException
AmplifyBackend.Client.exceptions.GatewayTimeoutException
AmplifyBackend.Client.exceptions.TooManyRequestsException
AmplifyBackend.Client.exceptions.BadRequestException