/AWS1/IF_QST=>LISTLIMITSPROFILES()¶
About ListLimitsProfiles¶
Lists all limits profiles in an Amazon Quick Sight account. Results are paginated. Use the maxResults parameter to limit the number of results returned in a single call, and use the nextToken parameter to retrieve the next page of results.
Method Signature¶
METHODS /AWS1/IF_QST~LISTLIMITSPROFILES
IMPORTING
!IV_ACCOUNTID TYPE /AWS1/QSTAWSACCOUNTID OPTIONAL
!IV_RESOURCETYPE TYPE /AWS1/QSTRESOURCETYPE OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/QSTLSTLMTPFLSREQMAXRSINT OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/QSTSTRING00 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_qstlistlimitspflsrsp
RAISING
/AWS1/CX_QSTACCESSDENIEDEX
/AWS1/CX_QSTINTERNALFAILUREEX
/AWS1/CX_QSTINVPARAMVALUEEX
/AWS1/CX_QSTTHROTTLINGEX
/AWS1/CX_QSTCLIENTEXC
/AWS1/CX_QSTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_accountid TYPE /AWS1/QSTAWSACCOUNTID /AWS1/QSTAWSACCOUNTID¶
The ID of the Amazon Web Services account that contains the limits profiles.
Optional arguments:¶
iv_resourcetype TYPE /AWS1/QSTRESOURCETYPE /AWS1/QSTRESOURCETYPE¶
An optional filter that limits the results to profiles that contain the specified resource type. If you don't specify a value, the operation returns all profiles.
iv_maxresults TYPE /AWS1/QSTLSTLMTPFLSREQMAXRSINT /AWS1/QSTLSTLMTPFLSREQMAXRSINT¶
The maximum number of results to return in a single call. If you don't specify a value, the service uses the default maximum.
iv_nexttoken TYPE /AWS1/QSTSTRING00 /AWS1/QSTSTRING00¶
The token for the next set of results, or null if there are no more results.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_qstlistlimitspflsrsp /AWS1/CL_QSTLISTLIMITSPFLSRSP¶
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->listlimitsprofiles(
iv_accountid = |string|
iv_maxresults = 123
iv_nexttoken = |string|
iv_resourcetype = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_profiles( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_profileid = lo_row_1->get_profileid( ).
lv_resourcearn = lo_row_1->get_arn( ).
lv_awsaccountid = lo_row_1->get_accountid( ).
lv_profilename = lo_row_1->get_profilename( ).
lv_profiledescription = lo_row_1->get_description( ).
LOOP AT lo_row_1->get_resourcelimits( ) into ls_row_2.
lv_key = ls_row_2-key.
lo_value = ls_row_2-value.
IF lo_value IS NOT INITIAL.
lv_profilelimitvaluemaxval = lo_value->get_maxvalue( ).
lv_limitunit = lo_value->get_unit( ).
ENDIF.
ENDLOOP.
lv_timestamp = lo_row_1->get_createdat( ).
lv_timestamp = lo_row_1->get_updatedat( ).
ENDIF.
ENDLOOP.
lv_string = lo_result->get_nexttoken( ).
ENDIF.