MWAA / Client / create_web_login_token
create_web_login_token#
- 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.
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
{ '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