/AWS1/CL_RDS=>PURCHASERSVDDBINSTSOFFERING()
¶
About PurchaseReservedDBInstancesOffering¶
Purchases a reserved DB instance offering.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_reserveddbinstsofferingid
TYPE /AWS1/RDSSTRING
/AWS1/RDSSTRING
¶
The ID of the Reserved DB instance offering to purchase.
Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
Optional arguments:¶
iv_reserveddbinstanceid
TYPE /AWS1/RDSSTRING
/AWS1/RDSSTRING
¶
Customer-specified identifier to track this reservation.
Example: myreservationID
iv_dbinstancecount
TYPE /AWS1/RDSINTEGEROPTIONAL
/AWS1/RDSINTEGEROPTIONAL
¶
The number of instances to reserve.
Default:
1
it_tags
TYPE /AWS1/CL_RDSTAG=>TT_TAGLIST
TT_TAGLIST
¶
Tags
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_rdspurchasersvddbin01
/AWS1/CL_RDSPURCHASERSVDDBIN01
¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->/aws1/if_rds~purchasersvddbinstsoffering(
it_tags = VALUE /aws1/cl_rdstag=>tt_taglist(
(
new /aws1/cl_rdstag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_dbinstancecount = 123
iv_reserveddbinstanceid = |string|
iv_reserveddbinstsofferingid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_reserveddbinstance = lo_result->get_reserveddbinstance( ).
IF lo_reserveddbinstance IS NOT INITIAL.
lv_string = lo_reserveddbinstance->get_reserveddbinstanceid( ).
lv_string = lo_reserveddbinstance->get_rsvddbinstsofferingid( ).
lv_string = lo_reserveddbinstance->get_dbinstanceclass( ).
lv_tstamp = lo_reserveddbinstance->get_starttime( ).
lv_integer = lo_reserveddbinstance->get_duration( ).
lv_double = lo_reserveddbinstance->get_fixedprice( ).
lv_double = lo_reserveddbinstance->get_usageprice( ).
lv_string = lo_reserveddbinstance->get_currencycode( ).
lv_integer = lo_reserveddbinstance->get_dbinstancecount( ).
lv_string = lo_reserveddbinstance->get_productdescription( ).
lv_string = lo_reserveddbinstance->get_offeringtype( ).
lv_boolean = lo_reserveddbinstance->get_multiaz( ).
lv_string = lo_reserveddbinstance->get_state( ).
LOOP AT lo_reserveddbinstance->get_recurringcharges( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_double = lo_row_1->get_recurringchargeamount( ).
lv_string = lo_row_1->get_recurringchargefrequency( ).
ENDIF.
ENDLOOP.
lv_string = lo_reserveddbinstance->get_reserveddbinstancearn( ).
lv_string = lo_reserveddbinstance->get_leaseid( ).
ENDIF.
ENDIF.
To purchase a reserved DB instance¶
The following example shows how to buy the reserved DB instance offering from the previous example.
DATA(lo_result) = lo_client->/aws1/if_rds~purchasersvddbinstsoffering(
iv_reserveddbinstanceid = |8ba30be1-b9ec-447f-8f23-6114e3f4c7b4|
iv_reserveddbinstsofferingid = ||
).