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
12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 | |