stopAutonomousDatabase method

Future<StopAutonomousDatabaseOutput> stopAutonomousDatabase({
  1. required String autonomousDatabaseId,
})

Stops the specified Autonomous Database.

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 stop.

Implementation

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

  return StopAutonomousDatabaseOutput.fromJson(jsonResponse.body);
}