describeDomains method
Returns domain configuration information about the specified domains, including the domain ID, domain endpoint, and domain ARN.
May throw BaseException. May throw InternalException. May throw ValidationException.
Parameter domainNames
:
The domains for which you want information.
Implementation
Future<DescribeDomainsResponse> describeDomains({
required List<String> domainNames,
}) async {
ArgumentError.checkNotNull(domainNames, 'domainNames');
final $payload = <String, dynamic>{
'DomainNames': domainNames,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/2021-01-01/opensearch/domain-info',
exceptionFnMap: _exceptionFns,
);
return DescribeDomainsResponse.fromJson(response);
}