MWAA / Client / create_cli_token

create_cli_token#

MWAA.Client.create_cli_token(**kwargs)#

Creates a CLI token for the Airflow CLI. To learn more, see Creating an Apache Airflow CLI token.

See also: AWS API Documentation

Request Syntax

response = client.create_cli_token(
    Name='string'
)
Parameters:

Name (string) –

[REQUIRED]

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

Return type:

dict

Returns:

Response Syntax

{
    'CliToken': 'string',
    'WebServerHostname': 'string'
}

Response Structure

  • (dict) –

    • CliToken (string) –

      An Airflow CLI login token.

    • WebServerHostname (string) –

      The Airflow web server hostname for the environment.

Exceptions