purchase_reserved_db_instances_offering
async
¶
purchase_reserved_db_instances_offering(
*,
config_overrides: Optional[AsyncRDSClientConfig] = 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.
>>> await 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/async_rds.py
12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 | |