listDomains method

Future<ListDomainsResult> listDomains({
  1. int? maxNumberOfDomains,
  2. String? nextToken,
})

The ListDomains operation lists all domains associated with the Access Key ID. It returns domain names up to the limit set by MaxNumberOfDomains. A NextToken is returned if there are more than MaxNumberOfDomains domains. Calling ListDomains successive times with the NextToken provided by the operation returns up to MaxNumberOfDomains more domain names with each successive operation call.

May throw InvalidParameterValue. May throw InvalidNextToken.

Parameter maxNumberOfDomains : The maximum number of domain names you want returned. The range is 1 to 100. The default setting is 100.

Parameter nextToken : A string informing Amazon SimpleDB where to start the next list of domain names.

Implementation

Future<ListDomainsResult> listDomains({
  int? maxNumberOfDomains,
  String? nextToken,
}) async {
  final $request = <String, dynamic>{};
  maxNumberOfDomains?.also((arg) => $request['MaxNumberOfDomains'] = arg);
  nextToken?.also((arg) => $request['NextToken'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'ListDomains',
    version: '2009-04-15',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['ListDomainsRequest'],
    shapes: shapes,
    resultWrapper: 'ListDomainsResult',
  );
  return ListDomainsResult.fromXml($result);
}