/AWS1/IF_MA2=>GETRESOURCEPROFILE()¶
About GetResourceProfile¶
Retrieves (queries) sensitive data discovery statistics and the sensitivity score for an S3 bucket.
Method Signature¶
METHODS /AWS1/IF_MA2~GETRESOURCEPROFILE
  IMPORTING
    !IV_RESOURCEARN TYPE /AWS1/MA2__STRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ma2getresourcepflrsp
  RAISING
    /AWS1/CX_MA2ACCESSDENIEDEX
    /AWS1/CX_MA2INTERNALSERVEREX
    /AWS1/CX_MA2RESOURCENOTFOUNDEX
    /AWS1/CX_MA2SERVICEQUOTAEXCDEX
    /AWS1/CX_MA2THROTTLINGEX
    /AWS1/CX_MA2VALIDATIONEX
    /AWS1/CX_MA2CLIENTEXC
    /AWS1/CX_MA2SERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_resourcearn TYPE /AWS1/MA2__STRING /AWS1/MA2__STRING¶
The Amazon Resource Name (ARN) of the S3 bucket that the request applies to.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ma2getresourcepflrsp /AWS1/CL_MA2GETRESOURCEPFLRSP¶
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->getresourceprofile( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv___timestampiso8601 = lo_result->get_profileupdatedat( ).
  lv___integer = lo_result->get_sensitivityscore( ).
  lv___boolean = lo_result->get_sensitivityscoreoverri00( ).
  lo_resourcestatistics = lo_result->get_statistics( ).
  IF lo_resourcestatistics IS NOT INITIAL.
    lv___long = lo_resourcestatistics->get_totalbytesclassified( ).
    lv___long = lo_resourcestatistics->get_totaldetections( ).
    lv___long = lo_resourcestatistics->get_totaldetectssuppressed( ).
    lv___long = lo_resourcestatistics->get_totalitemsclassified( ).
    lv___long = lo_resourcestatistics->get_totalitemssensitive( ).
    lv___long = lo_resourcestatistics->get_totalitemsskipped( ).
    lv___long = lo_resourcestatistics->get_totalitemsskippedinvenc( ).
    lv___long = lo_resourcestatistics->get_totalitemsskippedinvkms( ).
    lv___long = lo_resourcestatistics->get_totalitemsskippedpermd00( ).
  ENDIF.
ENDIF.