:doc:`LicenseManager <../../license-manager>` / Client / get_access_token

****************
get_access_token
****************



.. py:method:: 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 <https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetAccessToken>`_  


  **Request Syntax**
  ::

    response = client.get_access_token(
        Token='string',
        TokenProperties=[
            'string',
        ]
    )
    
  :type Token: string
  :param Token: **[REQUIRED]** 

    Refresh token, encoded as a JWT token.

    

  
  :type TokenProperties: list
  :param TokenProperties: 

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

    

  
    - *(string) --* 

    

  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'AccessToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **AccessToken** *(string) --* 

        Temporary access token.

        
  
  **Exceptions**
  
  *   :py:class:`LicenseManager.Client.exceptions.ValidationException`

  
  *   :py:class:`LicenseManager.Client.exceptions.AuthorizationException`

  
  *   :py:class:`LicenseManager.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`LicenseManager.Client.exceptions.RateLimitExceededException`

  
  *   :py:class:`LicenseManager.Client.exceptions.ServerInternalException`

  