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
13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 | |