listAutonomousDatabaseBackups method
Lists the backups of the specified Autonomous Database.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter autonomousDatabaseId :
The unique identifier of the Autonomous Database whose backups you want to
list.
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.
Parameter status :
The status of the Autonomous Database backups to return results for.
Parameter type :
The type of the Autonomous Database backups to return results for.
Implementation
Future<ListAutonomousDatabaseBackupsOutput> listAutonomousDatabaseBackups({
required String autonomousDatabaseId,
int? maxResults,
String? nextToken,
AutonomousDatabaseBackupStatus? status,
AutonomousDatabaseBackupType? type,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'Odb.ListAutonomousDatabaseBackups'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'autonomousDatabaseId': autonomousDatabaseId,
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
if (status != null) 'status': status.value,
if (type != null) 'type': type.value,
},
);
return ListAutonomousDatabaseBackupsOutput.fromJson(jsonResponse.body);
}