describeElasticsearchDomain method

Future<DescribeElasticsearchDomainResponse> describeElasticsearchDomain({
  1. required String domainName,
})

Returns domain configuration information about the specified Elasticsearch domain, including the domain ID, domain endpoint, and domain ARN.

May throw BaseException. May throw InternalException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter domainName : The name of the Elasticsearch domain for which you want information.

Implementation

Future<DescribeElasticsearchDomainResponse> describeElasticsearchDomain({
  required String domainName,
}) async {
  ArgumentError.checkNotNull(domainName, 'domainName');
  _s.validateStringLength(
    'domainName',
    domainName,
    3,
    28,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/2015-01-01/es/domain/${Uri.encodeComponent(domainName)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeElasticsearchDomainResponse.fromJson(response);
}