deleteRecoveryPoint method

Future<void> deleteRecoveryPoint({
  1. required String backupVaultName,
  2. required String recoveryPointArn,
})

Deletes the recovery point specified by a recovery point ID.

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.

Parameter recoveryPointArn : An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

Implementation

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