LicenseManager / Client / get_access_token

get_access_token#

LicenseManager.Client.get_access_token(**kwargs)#

Gets a temporary access token to use with AssumeRoleWithWebIdentity. Access tokens are valid for one hour.

See also: AWS API Documentation

Request Syntax

response = client.get_access_token(
    Token='string',
    TokenProperties=[
        'string',
    ]
)
Parameters:
  • Token (string) –

    [REQUIRED]

    Refresh token, encoded as a JWT token.

  • TokenProperties (list) –

    Token properties to validate against those present in the JWT token.

    • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'AccessToken': 'string'
}

Response Structure

  • (dict) –

    • AccessToken (string) –

      Temporary access token.

Exceptions

  • LicenseManager.Client.exceptions.ValidationException

  • LicenseManager.Client.exceptions.AuthorizationException

  • LicenseManager.Client.exceptions.AccessDeniedException

  • LicenseManager.Client.exceptions.RateLimitExceededException

  • LicenseManager.Client.exceptions.ServerInternalException