getEnvironment method
Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter name :
The name of the Amazon MWAA environment. For example,
MyMWAAEnvironment.
Implementation
Future<GetEnvironmentOutput> getEnvironment({
required String name,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/environments/${Uri.encodeComponent(name)}',
hostPrefix: 'api.',
exceptionFnMap: _exceptionFns,
);
return GetEnvironmentOutput.fromJson(response);
}