listDomainNames method

Future<ListDomainNamesResponse> listDomainNames({
  1. EngineType? engineType,
})

Returns the names of all Amazon OpenSearch Service domains owned by the current user in the active Region.

May throw BaseException. May throw ValidationException.

Parameter engineType : Filters the output by domain engine type.

Implementation

Future<ListDomainNamesResponse> listDomainNames({
  EngineType? engineType,
}) async {
  final $query = <String, List<String>>{
    if (engineType != null) 'engineType': [engineType.value],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/2021-01-01/domain',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListDomainNamesResponse.fromJson(response);
}