listTerminologies method
Provides a list of custom terminologies associated with your account.
May throw InvalidParameterValueException. May throw TooManyRequestsException. May throw InternalServerException.
Parameter maxResults
:
The maximum number of custom terminologies returned per list request.
Parameter nextToken
:
If the result of the request to ListTerminologies was truncated, include
the NextToken to fetch the next group of custom terminologies.
Implementation
Future<ListTerminologiesResponse> listTerminologies({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
500,
);
_s.validateStringLength(
'nextToken',
nextToken,
0,
8192,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSShineFrontendService_20170701.ListTerminologies'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
},
);
return ListTerminologiesResponse.fromJson(jsonResponse.body);
}