describeDomains method

Future<DescribeDomainsResponse> describeDomains({
  1. List<String>? domainNames,
})

Gets information about the search domains owned by this account. Can be limited to specific domains. Shows all domains by default.

May throw BaseException. May throw InternalException.

Parameter domainNames : Limits the DescribeDomains response to the specified search domains.

Implementation

Future<DescribeDomainsResponse> describeDomains({
  List<String>? domainNames,
}) async {
  final $request = <String, dynamic>{};
  domainNames?.also((arg) => $request['DomainNames'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'DescribeDomains',
    version: '2011-02-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DescribeDomainsRequest'],
    shapes: shapes,
    resultWrapper: 'DescribeDomainsResult',
  );
  return DescribeDomainsResponse.fromXml($result);
}