/AWS1/IF_SQT=>LISTSERVICEQUOTAS()¶
About ListServiceQuotas¶
Lists the applied quota values for the specified Amazon Web Services service. For some quotas, only the default values are available. If the applied quota value is not available for a quota, the quota is not retrieved. Filter responses to return applied quota values at either the account level, resource level, or all levels.
Method Signature¶
METHODS /AWS1/IF_SQT~LISTSERVICEQUOTAS
IMPORTING
!IV_SERVICECODE TYPE /AWS1/SQTSERVICECODE OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/SQTNEXTTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/SQTMAXRESULTS OPTIONAL
!IV_QUOTACODE TYPE /AWS1/SQTQUOTACODE OPTIONAL
!IV_QUOTAAPPLIEDATLEVEL TYPE /AWS1/SQTAPPLIEDLEVELENUM OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sqtlistsvcquotasrsp
RAISING
/AWS1/CX_SQTACCESSDENIEDEX
/AWS1/CX_SQTILLEGALARGUMENTEX
/AWS1/CX_SQTINVPAGINATIONTOKEX
/AWS1/CX_SQTNOSUCHRESOURCEEX
/AWS1/CX_SQTSERVICEEXCEPTION
/AWS1/CX_SQTTOOMANYREQUESTSEX
/AWS1/CX_SQTCLIENTEXC
/AWS1/CX_SQTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_servicecode TYPE /AWS1/SQTSERVICECODE /AWS1/SQTSERVICECODE¶
Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the ListServices operation.
Optional arguments:¶
iv_nexttoken TYPE /AWS1/SQTNEXTTOKEN /AWS1/SQTNEXTTOKEN¶
Specifies a value for receiving additional results after you receive a
NextTokenresponse in a previous request. ANextTokenresponse indicates that more output is available. Set this parameter to the value of the previous call'sNextTokenresponse to indicate where the output should continue from.
iv_maxresults TYPE /AWS1/SQTMAXRESULTS /AWS1/SQTMAXRESULTS¶
Specifies the maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the
NextTokenresponse element is present and has a value (is not null). Include that value as theNextTokenrequest parameter in the next call to the operation to get the next part of the results.An API operation can return fewer results than the maximum even when there are more results available. You should check
NextTokenafter every operation to ensure that you receive all of the results.
iv_quotacode TYPE /AWS1/SQTQUOTACODE /AWS1/SQTQUOTACODE¶
Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas operation, and look for the
QuotaCoderesponse in the output for the quota you want.
iv_quotaappliedatlevel TYPE /AWS1/SQTAPPLIEDLEVELENUM /AWS1/SQTAPPLIEDLEVELENUM¶
Filters the response to return applied quota values for the
ACCOUNT,RESOURCE, orALLlevels.ACCOUNTis the default.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sqtlistsvcquotasrsp /AWS1/CL_SQTLISTSVCQUOTASRSP¶
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->listservicequotas(
iv_maxresults = 123
iv_nexttoken = |string|
iv_quotaappliedatlevel = |string|
iv_quotacode = |string|
iv_servicecode = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_nexttoken = lo_result->get_nexttoken( ).
LOOP AT lo_result->get_quotas( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_servicecode = lo_row_1->get_servicecode( ).
lv_servicename = lo_row_1->get_servicename( ).
lv_quotaarn = lo_row_1->get_quotaarn( ).
lv_quotacode = lo_row_1->get_quotacode( ).
lv_quotaname = lo_row_1->get_quotaname( ).
lv_quotavalue = lo_row_1->get_value( ).
lv_quotaunit = lo_row_1->get_unit( ).
lv_quotaadjustable = lo_row_1->get_adjustable( ).
lv_globalquota = lo_row_1->get_globalquota( ).
lo_metricinfo = lo_row_1->get_usagemetric( ).
IF lo_metricinfo IS NOT INITIAL.
lv_quotametricnamespace = lo_metricinfo->get_metricnamespace( ).
lv_quotametricname = lo_metricinfo->get_metricname( ).
LOOP AT lo_metricinfo->get_metricdimensions( ) into ls_row_2.
lv_key = ls_row_2-key.
lo_value = ls_row_2-value.
IF lo_value IS NOT INITIAL.
lv_metricdimensionvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lv_statistic = lo_metricinfo->get_mettatisticrecommendat00( ).
ENDIF.
lo_quotaperiod = lo_row_1->get_period( ).
IF lo_quotaperiod IS NOT INITIAL.
lv_periodvalue = lo_quotaperiod->get_periodvalue( ).
lv_periodunit = lo_quotaperiod->get_periodunit( ).
ENDIF.
lo_errorreason = lo_row_1->get_errorreason( ).
IF lo_errorreason IS NOT INITIAL.
lv_errorcode = lo_errorreason->get_errorcode( ).
lv_errormessage = lo_errorreason->get_errormessage( ).
ENDIF.
lv_appliedlevelenum = lo_row_1->get_quotaappliedatlevel( ).
lo_quotacontextinfo = lo_row_1->get_quotacontext( ).
IF lo_quotacontextinfo IS NOT INITIAL.
lv_quotacontextscope = lo_quotacontextinfo->get_contextscope( ).
lv_quotacontextscopetype = lo_quotacontextinfo->get_contextscopetype( ).
lv_quotacontextid = lo_quotacontextinfo->get_contextid( ).
ENDIF.
lv_quotadescription = lo_row_1->get_description( ).
ENDIF.
ENDLOOP.
ENDIF.