create_web_login_token

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.

See also: AWS API Documentation

Request Syntax

response = client.create_web_login_token(
    Name='string'
)
Parameters
Name (string) --

[REQUIRED]

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

Return type
dict
Returns
Response Syntax
{
    'WebServerHostname': 'string',
    'WebToken': 'string'
}

Response Structure

  • (dict) --
    • WebServerHostname (string) --

      The Airflow web server hostname for the environment.

    • WebToken (string) --

      An Airflow web server login token.

Exceptions

  • MWAA.Client.exceptions.AccessDeniedException
  • MWAA.Client.exceptions.ResourceNotFoundException
  • MWAA.Client.exceptions.ValidationException
  • MWAA.Client.exceptions.InternalServerException