deleteBackup method
Deletes an existing backup of a table.
You can call DeleteBackup
at a maximum rate of 10 times per
second.
May throw BackupNotFoundException. May throw BackupInUseException. May throw LimitExceededException. May throw InternalServerError.
Parameter backupArn
:
The ARN associated with the backup.
Implementation
Future<DeleteBackupOutput> deleteBackup({
required String backupArn,
}) async {
ArgumentError.checkNotNull(backupArn, 'backupArn');
_s.validateStringLength(
'backupArn',
backupArn,
37,
1024,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'DynamoDB_20120810.DeleteBackup'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'BackupArn': backupArn,
},
);
return DeleteBackupOutput.fromJson(jsonResponse.body);
}