restoreAutonomousDatabase method

Future<RestoreAutonomousDatabaseOutput> restoreAutonomousDatabase({
  1. required String autonomousDatabaseId,
  2. required DateTime timestamp,
})

Restores the specified Autonomous Database to a point in time.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter autonomousDatabaseId : The unique identifier of the Autonomous Database to restore.

Parameter timestamp : The date and time to which to restore the Autonomous Database.

Implementation

Future<RestoreAutonomousDatabaseOutput> restoreAutonomousDatabase({
  required String autonomousDatabaseId,
  required DateTime timestamp,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'Odb.RestoreAutonomousDatabase'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'autonomousDatabaseId': autonomousDatabaseId,
      'timestamp': iso8601ToJson(timestamp),
    },
  );

  return RestoreAutonomousDatabaseOutput.fromJson(jsonResponse.body);
}