purchase_reserved_db_instances_offering
¶
purchase_reserved_db_instances_offering(
*,
config_overrides: Optional[RDSClientConfig] = None,
reserved_db_instances_offering_id: Optional[String] = None,
reserved_db_instance_id: Optional[String] = None,
db_instance_count: Optional[IntegerOptional] = None,
tags: Optional[TagList] = None,
) -> PurchaseReservedDBInstancesOfferingResult
Purchases a reserved DB instance offering.
Parameters:
-
reserved_db_instances_offering_id(Optional[String], default:None) –The ID of the Reserved DB instance offering to purchase.
Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
-
reserved_db_instance_id(Optional[String], default:None) –Customer-specified identifier to track this reservation.
Example: myreservationID
-
db_instance_count(Optional[IntegerOptional], default:None) –The number of instances to reserve.
Default:
1
Raises:
-
ReservedDBInstanceAlreadyExistsFault–User already has a reservation with the given identifier.
-
ReservedDBInstanceQuotaExceededFault–Request would exceed the user's DB Instance quota.
-
ReservedDBInstancesOfferingNotFoundFault–Specified offering does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To purchase a reserved DB instance The following example shows how to buy the reserved DB instance offering from the previous example.
>>> client.purchase_reserved_db_instances_offering(reserved_db_instances_offering_id='', reserved_db_instance_id='8ba30be1-b9ec-447f-8f23-6114e3f4c7b4')
Source code in docs_src/capo_rds/_services/rds.py
12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 | |