Skip to content

/AWS1/IF_QST=>BATCHDESCRIBEUSERLIMITS()

About BatchDescribeUserLimits

Describes the effective resource limits for one or more Amazon Quick Sight users, including the limits that apply to each user based on their profile assignments.

Method Signature

METHODS /AWS1/IF_QST~BATCHDESCRIBEUSERLIMITS
  IMPORTING
    !IV_ACCOUNTID TYPE /AWS1/QSTAWSACCOUNTID OPTIONAL
    !IT_USERS TYPE /AWS1/CL_QSTUSERLIMITSENTRY=>TT_BTCDESCRUSERLMTSREQUSERSLST OPTIONAL
    !IT_RESOURCETYPES TYPE /AWS1/CL_QSTRESOURCETYPELIST_W=>TT_RESOURCETYPELIST OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_qstbtcdescrusrlmtsrsp
  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 users.

Optional arguments:

it_users TYPE /AWS1/CL_QSTUSERLIMITSENTRY=>TT_BTCDESCRUSERLMTSREQUSERSLST TT_BTCDESCRUSERLMTSREQUSERSLST

A list of users to describe limits for. Each entry contains a user name and namespace.

it_resourcetypes TYPE /AWS1/CL_QSTRESOURCETYPELIST_W=>TT_RESOURCETYPELIST TT_RESOURCETYPELIST

An optional filter that limits the results to specific resource types. If you don't specify a value, the operation returns limits for all resource types.

RETURNING

oo_output TYPE REF TO /aws1/cl_qstbtcdescrusrlmtsrsp /AWS1/CL_QSTBTCDESCRUSRLMTSRSP

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->batchdescribeuserlimits(
  it_resourcetypes = VALUE /aws1/cl_qstresourcetypelist_w=>tt_resourcetypelist(
    ( new /aws1/cl_qstresourcetypelist_w( |string| ) )
  )
  it_users = VALUE /aws1/cl_qstuserlimitsentry=>tt_btcdescruserlmtsrequserslst(
    (
      new /aws1/cl_qstuserlimitsentry(
        iv_namespace = |string|
        iv_username = |string|
      )
    )
  )
  iv_accountid = |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_userlimits( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_string = lo_row_1->get_username( ).
      lv_string = lo_row_1->get_namespace( ).
      LOOP AT lo_row_1->get_effectivelimits( ) into lo_row_2.
        lo_row_3 = lo_row_2.
        IF lo_row_3 IS NOT INITIAL.
          lv_resourcetype = lo_row_3->get_resourcetype( ).
          lv_effectivelimitlimitvalu = lo_row_3->get_limitvalue( ).
          lv_limitunit = lo_row_3->get_limitunit( ).
          lv_limitsource = lo_row_3->get_source( ).
          lv_profileid = lo_row_3->get_profileid( ).
        ENDIF.
      ENDLOOP.
    ENDIF.
  ENDLOOP.
  LOOP AT lo_result->get_errors( ) into lo_row_4.
    lo_row_5 = lo_row_4.
    IF lo_row_5 IS NOT INITIAL.
      lv_string = lo_row_5->get_username( ).
      lv_string = lo_row_5->get_namespace( ).
      lv_string = lo_row_5->get_userarn( ).
      lv_string = lo_row_5->get_errorcode( ).
      lv_string = lo_row_5->get_message( ).
    ENDIF.
  ENDLOOP.
ENDIF.