listAutonomousDatabases method

Future<ListAutonomousDatabasesOutput> listAutonomousDatabases({
  1. int? maxResults,
  2. String? nextToken,
})

Returns information about the Autonomous Databases owned by your Amazon Web Services account in the current Amazon Web Services Region.

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

Parameter maxResults : The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output.

Parameter nextToken : The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

Implementation

Future<ListAutonomousDatabasesOutput> listAutonomousDatabases({
  int? maxResults,
  String? nextToken,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'Odb.ListAutonomousDatabases'
  };
  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 ListAutonomousDatabasesOutput.fromJson(jsonResponse.body);
}