deleteBackupVault method

Future<void> deleteBackupVault({
  1. required String backupVaultName,
})

Deletes the backup vault identified by its name. A vault can be deleted only if it is empty.

May throw ResourceNotFoundException. May throw InvalidParameterValueException. May throw MissingParameterValueException. May throw ServiceUnavailableException. May throw InvalidRequestException.

Parameter backupVaultName : The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens.

Implementation

Future<void> deleteBackupVault({
  required String backupVaultName,
}) async {
  ArgumentError.checkNotNull(backupVaultName, 'backupVaultName');
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/backup-vaults/${Uri.encodeComponent(backupVaultName)}',
    exceptionFnMap: _exceptionFns,
  );
}