createCliToken method
Creates a CLI token for the Airflow CLI. To learn more, see Creating an Apache Airflow CLI token.
May throw ResourceNotFoundException.
Parameter name :
The name of the Amazon MWAA environment. For example,
MyMWAAEnvironment.
Implementation
Future<CreateCliTokenResponse> createCliToken({
required String name,
}) async {
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri: '/clitoken/${Uri.encodeComponent(name)}',
exceptionFnMap: _exceptionFns,
);
return CreateCliTokenResponse.fromJson(response);
}