Skip to content

/AWS1/IF_QST=>DESCRIBELIMITSPROFILE()

About DescribeLimitsProfile

Describes the properties of an existing limits profile.

Method Signature

METHODS /AWS1/IF_QST~DESCRIBELIMITSPROFILE
  IMPORTING
    !IV_PROFILEID TYPE /AWS1/QSTPROFILEID OPTIONAL
    !IV_ACCOUNTID TYPE /AWS1/QSTAWSACCOUNTID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_qstdescrlimitspflrsp
  RAISING
    /AWS1/CX_QSTACCESSDENIEDEX
    /AWS1/CX_QSTINTERNALFAILUREEX
    /AWS1/CX_QSTINVPARAMVALUEEX
    /AWS1/CX_QSTRESOURCENOTFOUNDEX
    /AWS1/CX_QSTTHROTTLINGEX
    /AWS1/CX_QSTCLIENTEXC
    /AWS1/CX_QSTSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_profileid TYPE /AWS1/QSTPROFILEID /AWS1/QSTPROFILEID

The unique identifier for the limits profile.

iv_accountid TYPE /AWS1/QSTAWSACCOUNTID /AWS1/QSTAWSACCOUNTID

The ID of the Amazon Web Services account that contains the limits profile.

RETURNING

oo_output TYPE REF TO /aws1/cl_qstdescrlimitspflrsp /AWS1/CL_QSTDESCRLIMITSPFLRSP

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->describelimitsprofile(
  iv_accountid = |string|
  iv_profileid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_limitsprofile = lo_result->get_profile( ).
  IF lo_limitsprofile IS NOT INITIAL.
    lv_profileid = lo_limitsprofile->get_profileid( ).
    lv_resourcearn = lo_limitsprofile->get_arn( ).
    lv_awsaccountid = lo_limitsprofile->get_accountid( ).
    lv_profilename = lo_limitsprofile->get_profilename( ).
    lv_profiledescription = lo_limitsprofile->get_description( ).
    LOOP AT lo_limitsprofile->get_resourcelimits( ) into ls_row.
      lv_key = ls_row-key.
      lo_value = ls_row-value.
      IF lo_value IS NOT INITIAL.
        lv_profilelimitvaluemaxval = lo_value->get_maxvalue( ).
        lv_limitunit = lo_value->get_unit( ).
      ENDIF.
    ENDLOOP.
    lv_timestamp = lo_limitsprofile->get_createdat( ).
    lv_timestamp = lo_limitsprofile->get_updatedat( ).
  ENDIF.
ENDIF.