AmplifyBackend.Client.create_token(**kwargs)¶Generates a one-time challenge code to authenticate a user into your Amplify Admin UI.
See also: AWS API Documentation
Request Syntax
response = client.create_token(
AppId='string'
)
[REQUIRED]
The app ID.
{
'AppId': 'string',
'ChallengeCode': 'string',
'SessionId': 'string',
'Ttl': 'string'
}
Response Structure
200 response
The app ID.
One-time challenge code for authenticating into the Amplify Admin UI.
A unique ID provided when creating a new challenge token.
The expiry time for the one-time generated token code.
Exceptions
AmplifyBackend.Client.exceptions.NotFoundExceptionAmplifyBackend.Client.exceptions.GatewayTimeoutExceptionAmplifyBackend.Client.exceptions.TooManyRequestsExceptionAmplifyBackend.Client.exceptions.BadRequestException