listDatastores method

Future<ListDatastoresResponse> listDatastores({
  1. DatastoreStatus? datastoreStatus,
  2. int? maxResults,
  3. String? nextToken,
})

List data stores.

May throw AccessDeniedException. May throw InternalServerException. May throw ThrottlingException. May throw ValidationException.

Parameter datastoreStatus : The data store status.

Parameter maxResults : Valid Range: Minimum value of 1. Maximum value of 50.

Parameter nextToken : The pagination token used to request the list of data stores on the next page.

Implementation

Future<ListDatastoresResponse> listDatastores({
  DatastoreStatus? datastoreStatus,
  int? maxResults,
  String? nextToken,
}) async {
  final $query = <String, List<String>>{
    if (datastoreStatus != null) 'datastoreStatus': [datastoreStatus.value],
    if (maxResults != null) 'maxResults': [maxResults.toString()],
    if (nextToken != null) 'nextToken': [nextToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/datastore',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListDatastoresResponse.fromJson(response);
}