deleteDBInstanceAutomatedBackup method

Future<DeleteDBInstanceAutomatedBackupResult> deleteDBInstanceAutomatedBackup({
  1. String? dBInstanceAutomatedBackupsArn,
  2. String? dbiResourceId,
})

Deletes automated backups using the DbiResourceId value of the source DB instance or the Amazon Resource Name (ARN) of the automated backups.

May throw InvalidDBInstanceAutomatedBackupStateFault. May throw DBInstanceAutomatedBackupNotFoundFault.

Parameter dBInstanceAutomatedBackupsArn : The Amazon Resource Name (ARN) of the automated backups to delete, for example, arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE.

Parameter dbiResourceId : The identifier for the source DB instance, which can't be changed and which is unique to an AWS Region.

Implementation

Future<DeleteDBInstanceAutomatedBackupResult>
    deleteDBInstanceAutomatedBackup({
  String? dBInstanceAutomatedBackupsArn,
  String? dbiResourceId,
}) async {
  final $request = <String, dynamic>{};
  dBInstanceAutomatedBackupsArn
      ?.also((arg) => $request['DBInstanceAutomatedBackupsArn'] = arg);
  dbiResourceId?.also((arg) => $request['DbiResourceId'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'DeleteDBInstanceAutomatedBackup',
    version: '2014-10-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DeleteDBInstanceAutomatedBackupMessage'],
    shapes: shapes,
    resultWrapper: 'DeleteDBInstanceAutomatedBackupResult',
  );
  return DeleteDBInstanceAutomatedBackupResult.fromXml($result);
}