:doc:`MWAA <../../mwaa>` / Client / create_web_login_token

**********************
create_web_login_token
**********************



.. py:method:: MWAA.Client.create_web_login_token(**kwargs)

  

  Creates a web login token for the Airflow Web UI. To learn more, see `Creating an Apache Airflow web login token <https://docs.aws.amazon.com/mwaa/latest/userguide/call-mwaa-apis-web.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/CreateWebLoginToken>`_  


  **Request Syntax**
  ::

    response = client.create_web_login_token(
        Name='string'
    )
    
  :type Name: string
  :param Name: **[REQUIRED]** 

    The name of the Amazon MWAA environment. For example, ``MyMWAAEnvironment``.

    

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

    
    ::

      {
          'WebToken': 'string',
          'WebServerHostname': 'string',
          'IamIdentity': 'string',
          'AirflowIdentity': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **WebToken** *(string) --* 

        An Airflow web server login token.

        
      

      - **WebServerHostname** *(string) --* 

        The Airflow web server hostname for the environment.

        
      

      - **IamIdentity** *(string) --* 

        The name of the IAM identity creating the web login token. This might be an IAM user, or an assumed or federated identity. For example, ``assumed-role/Admin/your-name``.

        
      

      - **AirflowIdentity** *(string) --* 

        The user name of the Apache Airflow identity creating the web login token.

        
  
  **Exceptions**
  
  *   :py:class:`MWAA.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`MWAA.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`MWAA.Client.exceptions.ValidationException`

  
  *   :py:class:`MWAA.Client.exceptions.InternalServerException`

  