/AWS1/IF_RSH=>MODIFYUSAGELIMIT()¶
About ModifyUsageLimit¶
Modifies a usage limit in a cluster. You can't modify the feature type or period of a usage limit.
Method Signature¶
METHODS /AWS1/IF_RSH~MODIFYUSAGELIMIT
IMPORTING
!IV_USAGELIMITID TYPE /AWS1/RSHSTRING OPTIONAL
!IV_AMOUNT TYPE /AWS1/RSHLONGOPTIONAL OPTIONAL
!IV_BREACHACTION TYPE /AWS1/RSHUSAGELIMITBREACHACT OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_rshusagelimit
RAISING
/AWS1/CX_RSHINVUSAGELIMITFAULT
/AWS1/CX_RSHUNSUPPORTEDOPFAULT
/AWS1/CX_RSHUSAGELMTNOTFNDFA00
/AWS1/CX_RSHCLIENTEXC
/AWS1/CX_RSHSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_usagelimitid TYPE /AWS1/RSHSTRING /AWS1/RSHSTRING¶
The identifier of the usage limit to modify.
Optional arguments:¶
iv_amount TYPE /AWS1/RSHLONGOPTIONAL /AWS1/RSHLONGOPTIONAL¶
The new limit amount. For more information about this parameter, see UsageLimit.
iv_breachaction TYPE /AWS1/RSHUSAGELIMITBREACHACT /AWS1/RSHUSAGELIMITBREACHACT¶
The new action that Amazon Redshift takes when the limit is reached. For more information about this parameter, see UsageLimit.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_rshusagelimit /AWS1/CL_RSHUSAGELIMIT¶
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->modifyusagelimit(
iv_amount = 123
iv_breachaction = |string|
iv_usagelimitid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_string = lo_result->get_usagelimitid( ).
lv_string = lo_result->get_clusteridentifier( ).
lv_usagelimitfeaturetype = lo_result->get_featuretype( ).
lv_usagelimitlimittype = lo_result->get_limittype( ).
lv_long = lo_result->get_amount( ).
lv_usagelimitperiod = lo_result->get_period( ).
lv_usagelimitbreachaction = lo_result->get_breachaction( ).
LOOP AT lo_result->get_tags( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_key( ).
lv_string = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.