listResourceTypes method
Lists the shareable resource types supported by AWS RAM.
May throw InvalidNextTokenException. May throw InvalidParameterException. May throw ServerInternalException. May throw ServiceUnavailableException.
Parameter maxResults
:
The maximum number of results to return with a single call. To retrieve
the remaining results, make another call with the returned
nextToken
value.
Parameter nextToken
:
The token for the next page of results.
Implementation
Future<ListResourceTypesResponse> listResourceTypes({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
500,
);
final $payload = <String, dynamic>{
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/listresourcetypes',
exceptionFnMap: _exceptionFns,
);
return ListResourceTypesResponse.fromJson(response);
}