listDataSetRevisions method
This operation lists a data set's revisions sorted by CreatedAt in descending order.
May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException. May throw InternalServerException.
Parameter dataSetId :
The unique identifier for a data set.
Parameter maxResults :
The maximum number of results returned by a single call.
Parameter nextToken :
The token value retrieved from a previous call to access the next page of
results.
Implementation
Future<ListDataSetRevisionsResponse> listDataSetRevisions({
  required String dataSetId,
  int? maxResults,
  String? nextToken,
}) async {
  ArgumentError.checkNotNull(dataSetId, 'dataSetId');
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    25,
  );
  final $query = <String, List<String>>{
    if (maxResults != null) 'maxResults': [maxResults.toString()],
    if (nextToken != null) 'nextToken': [nextToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v1/data-sets/${Uri.encodeComponent(dataSetId)}/revisions',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListDataSetRevisionsResponse.fromJson(response);
}