/AWS1/IF_RSS=>CREATERESERVATION()¶
About CreateReservation¶
Creates an Amazon Redshift Serverless reservation, which gives you the option to commit to a specified number of Redshift Processing Units (RPUs) for a year at a discount from Serverless on-demand (OD) rates.
Method Signature¶
METHODS /AWS1/IF_RSS~CREATERESERVATION
IMPORTING
!IV_CAPACITY TYPE /AWS1/RSSCAPACITY OPTIONAL
!IV_OFFERINGID TYPE /AWS1/RSSOFFERINGID OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/RSSSTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_rsscrereservationrsp
RAISING
/AWS1/CX_RSSCONFLICTEXCEPTION
/AWS1/CX_RSSINTERNALSERVEREX
/AWS1/CX_RSSRESOURCENOTFOUNDEX
/AWS1/CX_RSSSERVICEQUOTAEXCDEX
/AWS1/CX_RSSTHROTTLINGEX
/AWS1/CX_RSSTOOMANYTAGSEX
/AWS1/CX_RSSVALIDATIONEX
/AWS1/CX_RSSCLIENTEXC
/AWS1/CX_RSSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_capacity TYPE /AWS1/RSSCAPACITY /AWS1/RSSCAPACITY¶
The number of Redshift Processing Units (RPUs) to reserve.
iv_offeringid TYPE /AWS1/RSSOFFERINGID /AWS1/RSSOFFERINGID¶
The ID of the offering associated with the reservation. The offering determines the payment schedule for the reservation.
Optional arguments:¶
iv_clienttoken TYPE /AWS1/RSSSTRING /AWS1/RSSSTRING¶
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. This token must be a valid UUIDv4 value. For more information about idempotency, see Making retries safe with idempotent APIs .
RETURNING¶
oo_output TYPE REF TO /aws1/cl_rsscrereservationrsp /AWS1/CL_RSSCRERESERVATIONRSP¶
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->createreservation(
iv_capacity = 123
iv_clienttoken = |string|
iv_offeringid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_reservation = lo_result->get_reservation( ).
IF lo_reservation IS NOT INITIAL.
lv_reservationid = lo_reservation->get_reservationid( ).
lv_reservationarn = lo_reservation->get_reservationarn( ).
lv_timestamp = lo_reservation->get_startdate( ).
lv_timestamp = lo_reservation->get_enddate( ).
lv_capacity = lo_reservation->get_capacity( ).
lo_reservationoffering = lo_reservation->get_offering( ).
IF lo_reservationoffering IS NOT INITIAL.
lv_offeringid = lo_reservationoffering->get_offeringid( ).
lv_duration = lo_reservationoffering->get_duration( ).
lv_charge = lo_reservationoffering->get_upfrontcharge( ).
lv_charge = lo_reservationoffering->get_hourlycharge( ).
lv_currencycode = lo_reservationoffering->get_currencycode( ).
lv_offeringtype = lo_reservationoffering->get_offeringtype( ).
ENDIF.
lv_status = lo_reservation->get_status( ).
ENDIF.
ENDIF.