delete_tenant_database
async
¶
delete_tenant_database(
*,
config_overrides: Optional[AsyncRDSClientConfig] = None,
db_instance_identifier: Optional[String] = None,
tenant_db_name: Optional[String] = None,
skip_final_snapshot: Optional[Boolean] = None,
final_db_snapshot_identifier: Optional[String] = None,
) -> DeleteTenantDatabaseResult
Deletes a tenant database from your DB instance. This command only applies to RDS for Oracle container database (CDB) instances.
You can't delete a tenant database when it is the only tenant in the DB instance.
Parameters:
-
db_instance_identifier(Optional[String], default:None) –The user-supplied identifier for the DB instance that contains the tenant database that you want to delete.
-
tenant_db_name(Optional[String], default:None) –The user-supplied name of the tenant database that you want to remove from your DB instance. Amazon RDS deletes the tenant database with this name. This parameter isn’t case-sensitive.
-
skip_final_snapshot(Optional[Boolean], default:None) –Specifies whether to skip the creation of a final DB snapshot before removing the tenant database from your DB instance. If you enable this parameter, RDS doesn't create a DB snapshot. If you don't enable this parameter, RDS creates a DB snapshot before it deletes the tenant database. By default, RDS doesn't skip the final snapshot. If you don't enable this parameter, you must specify the
FinalDBSnapshotIdentifierparameter. -
final_db_snapshot_identifier(Optional[String], default:None) –The
DBSnapshotIdentifierof the newDBSnapshotcreated when theSkipFinalSnapshotparameter is disabled.If you enable this parameter and also enable
SkipFinalShapshot, the command results in an error.
Raises:
-
DBInstanceNotFoundFault–DBInstanceIdentifierdoesn't refer to an existing DB instance. -
DBSnapshotAlreadyExistsFault–DBSnapshotIdentifieris already used by an existing snapshot. -
InvalidDBInstanceStateFault–The DB instance isn't in a valid state.
-
TenantDatabaseNotFoundFault–The specified tenant database wasn't found in the DB instance.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_rds/_services/async_rds.py
5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 | |