Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

get_access_token

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