listDomains method
Returns a list of all the domains for an AWS account that have been created.
May throw AccessDeniedException.
May throw BadRequestException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter maxResults :
The maximum number of objects returned per page.
Parameter nextToken :
The pagination token from the previous ListDomain API call.
Implementation
Future<ListDomainsResponse> listDomains({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final $query = <String, List<String>>{
if (maxResults != null) 'max-results': [maxResults.toString()],
if (nextToken != null) 'next-token': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/domains',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListDomainsResponse.fromJson(response);
}