shrinkAutonomousDatabase method
Future<ShrinkAutonomousDatabaseOutput>
shrinkAutonomousDatabase({
- required String autonomousDatabaseId,
Shrinks the storage of the specified Autonomous Database to reclaim unused space.
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 shrink.
Implementation
Future<ShrinkAutonomousDatabaseOutput> shrinkAutonomousDatabase({
required String autonomousDatabaseId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'Odb.ShrinkAutonomousDatabase'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'autonomousDatabaseId': autonomousDatabaseId,
},
);
return ShrinkAutonomousDatabaseOutput.fromJson(jsonResponse.body);
}