Skip to main content

cli_tokens

Creates, updates, deletes, gets or lists a cli_tokens resource.

Overview

Namecli_tokens
TypeResource
Idaws.mwaa.cli_tokens

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_cli_tokeninsertname, regionCreates a CLI token for the Airflow CLI. To learn more, see Creating an Apache Airflow CLI token.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
namestringThe name of the Amazon MWAA environment. For example, MyMWAAEnvironment.
regionstringAWS region (default: us-east-1)

INSERT examples

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

INSERT INTO aws.mwaa.cli_tokens (
name,
region
)
SELECT
'{{ name }}',
'{{ region }}'
RETURNING
cli_token,
web_server_hostname
;